<div dir="auto">Did you uninstall PostgreSQL 13?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A sexta, 30/09/2022, 04:08, Simon SPDBA Greener <<a href="mailto:simon@spdba.com.au">simon@spdba.com.au</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I decided to switch the port back to 5432 following your recipe (because <br>
I have many apps that access postgresql).<br>
<br>
I can connect using qGIS/pgAdmin 4 etc but when I try to connect using <br>
GeoServer I get this:<br>
<br>
...<br>
at java.base/java.lang.Thread.run(Thread.java:831)<br>
Caused by: java.lang.RuntimeException: Unable to obtain connection: <br>
ERROR: function postgis_lib_version() does not exist<br>
Hint: No function matches the given name and argument types. You <br>
might need to add explicit type casts.<br>
Position: 8<br>
at <br>
org.geotools.jdbc.JDBCDataStore.createConnection(JDBCDataStore.java:2132)<br>
<br>
Running the function in pgAdmin 4 returns:<br>
<br>
select postgis_lib_version();<br>
<br>
"postgis_lib_version"<br>
"3.2.3"<br>
<br>
Any ideas?<br>
<br>
All other apps work correctly, only GeoServer is returning this error.<br>
<br>
regards<br>
<br>
Simon<br>
On 30/09/2022 11:39 am, Simon SPDBA Greener wrote:<br>
> The old postgresql 13 was running on 5432.<br>
><br>
> I thought I had shut it down before running the 14 installer.<br>
><br>
> No matter, your suggestion about 5433 was the key I needed to open the <br>
> door.<br>
><br>
> Thanks for all your patience and help: greatly appreciated.<br>
><br>
> regards<br>
><br>
> Simon<br>
><br>
> On 30/09/2022 10:31 am, Regina Obe wrote:<br>
>> When you use the PostgreSQL installer on windows,<br>
>> If you have a PostgreSQL instance running already on Port 5432, it <br>
>> defaults<br>
>> the port to the next available increment port.<br>
>><br>
>> So my guess is you had your bitnami running on Port 5432, it detected <br>
>> that,<br>
>> so then installed on Port 5433.<br>
>><br>
>> So your old would have 5432, your new PostgreSQL 14 would be 5433.<br>
>><br>
>> That's why I mentioned, if you wanted it to run on default PostgreSQL <br>
>> 5432,<br>
>> you can do the<br>
>><br>
>> Run the sql:<br>
>> ALTER SYSTEM Set port = '5432';<br>
>><br>
>> Then restart the service.<br>
>><br>
>> And that registry change I mentioned.<br>
>><br>
>> Open regedit.exe<br>
>><br>
>><br>
>> HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Services\postgresql-x64-14\<br>
>><br>
>> Key: Port<br>
>><br>
>><br>
>> The registry change you do so if you install other extensions such as<br>
>> postgis or pgAgent that need to connect to the database, they read <br>
>> the port<br>
>> number from the registry and default to that. I think pgAdmin4 also <br>
>> when you<br>
>> first setup reads port from registry.<br>
>><br>
>><br>
>><br>
>>> -----Original Message-----<br>
>>> From: postgis-users [mailto:<a href="mailto:postgis-users-bounces@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users-bounces@lists.osgeo.org</a>] On<br>
>> Behalf<br>
>>> Of Simon SPDBA Greener<br>
>>> Sent: Thursday, September 29, 2022 7:50 PM<br>
>>> To: <a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a><br>
>>> Subject: Re: [postgis-users] No extension<br>
>>><br>
>>> Hold that thought.<br>
>>><br>
>>> Port 5432 didn't work on DFDB as I thought it did.<br>
>>><br>
>>> Port 5433 works.<br>
>>><br>
>>> Has the default port changed with database installs?<br>
>>><br>
>>> Simon<br>
>>>> -- <br>
>>>> Simon Greener<br>
>>>> 39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia<br>
>>>> (m) +61 418 396 391<br>
>>>> (w)<a href="http://www.spdba.com.au" rel="noreferrer noreferrer" target="_blank">www.spdba.com.au</a><br>
>>>> (m)<a href="mailto:simon@spdba.com.au" target="_blank" rel="noreferrer">simon@spdba.com.au</a><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> postgis-users mailing list<br>
>>>> <a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a><br>
>>>> <a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
>>> -- <br>
>>> Simon Greener<br>
>>> 39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia<br>
>>> (m) +61 418 396 391<br>
>>> (w) <a href="http://www.spdba.com.au" rel="noreferrer noreferrer" target="_blank">www.spdba.com.au</a><br>
>>> (m) <a href="mailto:simon@spdba.com.au" target="_blank" rel="noreferrer">simon@spdba.com.au</a><br>
>>><br>
>>> _______________________________________________<br>
>>> postgis-users mailing list<br>
>>> <a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a><br>
>>> <a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
>> _______________________________________________<br>
>> postgis-users mailing list<br>
>> <a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a><br>
>> <a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
><br>
-- <br>
Simon Greener<br>
39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia<br>
(m) +61 418 396 391<br>
(w) <a href="http://www.spdba.com.au" rel="noreferrer noreferrer" target="_blank">www.spdba.com.au</a><br>
(m) <a href="mailto:simon@spdba.com.au" target="_blank" rel="noreferrer">simon@spdba.com.au</a><br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank" rel="noreferrer">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</blockquote></div>