I have a database on Heroku with Postgis installed. My system relies heavily on geometric operations such as st_union. I guess Heroku updated my postgis version recently and now all my queries that use functions like st_union or st_overlap produce this error:
[0A000] ERROR: A stored procedure tried to use deprecated C function 'pgis_geometry_union_finalfn' Detail: Library function 'pgis_geometry_union_finalfn' was deprecated in PostGIS 3.3.0 Hint: Consider running: SELECT postgis_extensions_upgrade()
Is this correct? Have these functions been removed? Are there alternative functions?
I am running Postgis version 3.3.2 and Postgres version 14.6
Related
ERROR: could not load library "C:/POSTGR~1/pg94/../pg94/lib/postgresql/plv8.dll": The specified procedure could not be found.
SQL state: XX000
I have installed postgres 9.4.15, and want to install plv8 1.4.3.
I have copied the binary files from
http://www.postgresonline.com/journal/archives/341-PLV8-binaries-for-PostgreSQL-9.4-windows-both-32-bit-and-64-bit.html
All 64 bit version. Error displayed after running query: CREATE EXTENSION plv8;
Library issue while upgrading postgres 9.3.4 to 9.4
I'm trying to upgrade postgres 9.3.4 to postgres 9.4 but im getting below error.
/usr/pgsql-9.4/bin/pg_upgrade --old-bindir=/usr/pgsql-9.3/bin/ --new-bindir=/usr/pgsql-9.4/bin/ --old-datadir=/crpjirw1/postgres1/9.3/data/ --new-datadir=/crpjirw1/postgres1/9.4/data/ --check
Performing Consistency Checks
Checking cluster versions ok
Checking database user is a superuser ok
Checking database connection settings ok
Checking for prepared transactions ok
Checking for reg* system OID user data types ok
Checking for contrib/isn with bigint-passing mismatch ok
Checking for invalid "line" user columns ok
Checking for presence of required libraries fatal
Your installation references loadable libraries that are missing from the
new installation. You can add these libraries to the new installation,
or remove the functions using them from the old installation. A list of
problem libraries is in the file:
loadable_libraries.txt
Failure, exiting
more loadable_libraries.txt
Could not load library "$libdir/pg_stat_plans"
ERROR: could not access file "$libdir/pg_stat_plans": No such file or
directory
i checked in libdir there is no file pg_stat_plans
pg_config --pkglibdir
/usr/pgsql-9.3/lib
cd /usr/pgsql-9.3/lib
ls -lrt pg_stat_plan
ls: cannot access pg_stat_plan*: No such file or directory
I dont understand where its looking for pg_stat_plan lib file.
Someone help me to fix this issue.
I have fixed my issue.
Dropped the pg_stat_plans extension to fix the issue.
There is multiples function will be associated to pg_stat_plans extension
drop extension worked even though there is no extension like pg_stat_plans and it automatically dropped all function and views associated with extension and fixed the issue.
So we have to uninstall the rpm package pg_stat_plans.xxxxx.rpm first and then drop extension and trigger pg_upgrade , it worked for me.
I'm trying to install orafce extension on postgresql 10.1. I'm getting the next error : Could not load library "$libdir/orafce": ERROR: could not load library "MyPATH/orafce.so": MyPATH/orafce.so: undefined symbol: Float8GetDatum
When I run make install I dont get any errors. This is part of upgrade of postgreqsl 9.6.3 to 10.1. I got the error when I run pg_upgrade --check
Any idea what can I check ?
I solved the issue by rebuilding the extension both on the old and on the new version (in that order).
On the PostgreSQL (9.3.0) + postGIS (2.1.0) side, I'm receiving the following WARNING log:
CONTEXT: SQL function "st_force_2d" during startup
WARNING: ST_Force_2d signature was deprecated in 2.1.0. Please use ST_Force2D
I found that the reason is the mapserver (6.2.1) layer used in the mapfile quering postgis data.
Do you know if in mapserver 6.4.0 (just released a week ago) the issue is resolved?
It was not addressed in 6.4.0. Opening an issue on the MapServer issue tracker would be a good start to get this added into a future release.
I'm trying to install Postgresql (8.2.15) additional supplied modules intarray and intagg for my Greenplum database 4.2.1.0. The installation seems successful; I followed the tutorial here and all the files are copied into the greenplumlib-db-4.2.1.0/lib/postgresql share/postgresql directory. but when I tried to execute my java code, it throws an "undefined symbol" error:
org.postgresql.util.PSQLException: ERROR: could not load library "/usr/local/greenplum-db-4.2.1.0/lib/postgresql/_int.so": /usr/local/greenplum-db-4.2.1.0/lib/postgresql/_int.so: undefined symbol: pfree
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:345)
at tuffy.db.RDB.execute(RDB.java:354)
at tuffy.db.RDB.resetSchema(RDB.java:700)
at felix.main.Felix.parseFelixQuery(Felix.java:106)
at felix.main.Felix.run(Felix.java:755)
at felix.main.Main.main(Main.java:69)
saying that the symbol pfree is undefined. I have checked the version number: both the postgresql in Greenplum and the additional module are 8.2.15. Am I missing something?
Update: The link to the tutorial seems unstable; it basically gives some simple steps to complete the installation:
Get any of the postgresql 8.2 source package from the official site
su - gpadmin
Unpack the source, then go to ~/postgresql-8.2.xx/contrib/xxx
make USE_PGXS=1 COPT="-Wno-error" install
(Optional for Greenplum MPP) Use gpssh to copy whatever .so file that just get installed under /usr/local/greenplum-db/lib/postgresql to other nodes
psql -f xxx.sql [DBNAME]
Update:
Thank you for your answer.
I'm installing Greenplum, but it only includes postgresql 8.2.15, so I have to use this version. I have copied the whole /usr/local/pgsql/lib directory to the greenplum library, it seems to get the intarray to work, but now I have a new error:
could not load library "/usr/local/greenplum-db-4.2.1.0/lib/postgresql/plpgsql.so":
/usr/local/greenplum-db-4.2.1.0/lib/postgresql/plpgsql.so: undefined symbol: heap_copytuple
It seems that I'm missing some files...
Thank you!
You may have missed that PostgreSQL 8.2 has reached end of life in 2011.
Upgrade to a more current version, (latest is 9.1 at the time of writing), where installing the extension (formerly: "additional supplied modules") intarray is a matter of:
CREATE EXTENSION intarray;
The manual about CREATE EXTENSION.