PostgreSQL ERROR: Could not load library postgis-2.1.dll - postgresql

I'm using pgAdmin III to connect to my PostgreSQL database (Postgres) and I'm trying to add an extension to the database which is Postgis.
Even though the "missing" file is in the folder the following message error shows:
"ERROR: Could not load library "C:/Program Files/PostGreSQL/9.4/lib/postgis-2.1.dll": unknown error 193."
Can anyone help me?

The windows version is not mentioned. With win 7 check wether postgis is installed. Remove it. From http://download.osgeo.org/postgis/windows/ get the right postgis installer and install new, then start in pgadmin with 'create extension postgis;'.

For me, the error "unknown error 193" occured since I installed a 64-bit version of PostgreSQL but tried to use the 32-bit version of PostGIS (somewhere I read that the 64-bit version would not work properly, but that was in 2011 and now it does).
For me it finally worked when I:
1. removed the existing PostGIS installation (Control Panel -> Programs)
2. shutdown the PostgreSQL service
3. installed the 64-bit version of PostGIS (2.1.3, Postgre in 9.3)
4. restarted the PostgreSQL service
5. installed the extension via PgAdmin III

Related

Install PostgreSQL 11.1 on Debian Stretch with PostgreSQL Debian (9.6)

I have a production machine running debian strecth that I do not want to mess up. I have an app that requires postgres 11 and I'm not sure about a thing. Does the installation from the official postgres debian repo install as an extra server or does it replace the existing 9.6 verssion on debian?
I have tried to dump from version 11 and restore in 9.6 but it throws an error on creation of a sequence:
psql:fas-schema.sql:125: ERROR: syntax error at or near "AS"
LINE 2: AS integer
Just need to be sure 100%
If you want to run multiple versions of PostgreSQL one the same host, you should use official packages provided by PGDG. All the currently supported versions are available.
Though, these packages are not including tools provided by the Debian project, such as pg_ctlcluster or pg_lsclusters.

Postgis syntax PARALLEL error

I can't create extension in my db. throws a error that says
CREATE EXTENSION postgis;
ERROR: syntax error at or near "PARALLEL"
Position: 2445
Is there any solution for this issue ?
PostgreSQL version 9.6.
PostGis version 2.3.
Thanks !
No one could possibly debug this without knowing a lot more information, but it's either
a (syntax) error in the extension itself
you're not running PostgreSQL 9.6 (maybe you have some earlier version installed alongside it)
Connect to the database that you ran CREATE EXTENSION on, and run this
SELECT version();
My assumption is that you're not on a 9.6 server, and that you're connecting to some earlier version of PostgreSQL. PARALLEL was new with 9.6.

Db2 Installation Issue

Hi I have tried to install DB2 9.5 in Windows 7 OS, Installation was successful but when I try to open Control Centre it's throwing an error DB29501E which is an error for not creating DB2 instance. How to create DB2 instance or is there a way to create while installation only.
IBM knows about this problem and has a guide for you.
http://www-01.ibm.com/support/docview.wss?uid=swg21240310

unable to locate postgresql in etc centos

I tried installing postgresql in my server which has centos
I followed this link
I am facing few complexity here.
I could not locate postgresql file in /etc directory.
psql (8.4.13, server 9.2.4) WARNING: psql version 8.4, server version 9.2. Some psql features might not work.
How can i solve these issues. can anyone suggest me.
I could not locate postgresql file in /etc directory.
The tutorial you linked to suggests the config files are in /var/lib/pgsql/9.2/data/...
psql (8.4.13, server 9.2.4) WARNING: psql version 8.4, server version 9.2. Some psql features might not work.
You've still got the 8.4 version of psql installed. Use your package tools (rpm/yum) to see what versions of the psql client packages are installed and where the binaries are.
It's common enough to run two different versions of PG on the same machine. Obviously each needs its own data directory and port number. Also, as you've seen psql will check the version number and warn if they are different. Basic queries still work, but obviously an 8.4 version won't know about extensions introduced in 9.1 and that sort of thing.

No liblwgeom when using postgresql84 and postgis on Snow Leopard with MacPorts

I'm trying to get my dev environment back up and running after upgrading to Snow Leopard. In particular, I need postgresql and postgis working, but I'm running into the following problem.
After installing both with the following:
sudo port install postgresql84 postgresql84-server postgis
I get errors like the following when I try to load my sql database, which has references to liblwgeom.so
ERROR: function public.box3d_in(cstring) does not exist
ERROR: incompatible library "/usr/local/pgsql/lib/liblwgeom.so": version mismatch
DETAIL: Server is version 8.4, library is version 8.3.
That file does exist on my computer, but must be sitting around from an old install of postgresql 8.3. The problem is I can't figure out where liblwgeom.so is supposed to come from. It's not included in postgis 1.4, and a Google search is leaving me scratching my head. Any ideas?
liblwgeom.so comes with PostGIS vesion 1.3. It has been renamed in 1.4. It looks like your dump is of a database with PostGIS 1.3 and you're trying to reload in PostGIS 1.4. This is not supported.
See the PostGIS manual on upgrading for details on what to do.
Update your ports:
sudo port selfupdate
Then install postgis 1.4, which will work for postgresql 8.4
sudo port install postgis