aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2020-09-27 19:55:09 +0100
committerDaniel Golle <daniel@makrotopia.org>2020-10-05 15:39:05 +0100
commitdaa0f22b63c1442ad51122e5ba140c1ae5890267 (patch)
treef732b1eb5f78482ff0a7a367a6bce2eff9608437 /configure.ac
parent400f527fbd5cb6d9523374f6f8d1320339c5b71a (diff)
downloadgnunet-daa0f22b63c1442ad51122e5ba140c1ae5890267.tar.gz
gnunet-daa0f22b63c1442ad51122e5ba140c1ae5890267.zip
postgres: drop use of 'WITH OIDS'
PostgreSQL since version 12 no longer supports 'WITH OIDS': Previously, a normally-invisible oid column could be specified during table creation using WITH OIDS; that ability has been removed. Columns can still be explicitly declared as type oid. Operations on tables that have columns created using WITH OIDS will need adjustment. The system catalogs that previously had hidden oid columns now have ordinary oid columns. Hence, SELECT * will now output those columns, whereas previously they would be displayed only if selected explicitly. Drop 'WITH OIDS' as it was stated even on tables for plugins which didn't make any use of the then exposed 'oid' column. In the case of datacache and datastore the 'oid' column is used, so replace the 'WITH OIDS' statement with an explicit 'oid' column having 'OID' type and a corresponding sequence. No measures are taken to still work with PostgreSQL before version 12. Users should update PostgreSQL to version 12 or newer. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 946b6f58a..581764b52 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1335,7 +1335,7 @@ CPPFLAGS=$SAVE_CPPFLAGS
1335 1335
1336# test for postgres: 1336# test for postgres:
1337postgres=false 1337postgres=false
1338AX_LIB_POSTGRESQL([9.5], 1338AX_LIB_POSTGRESQL([12.0],
1339 [CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS" 1339 [CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS"
1340 AC_CHECK_HEADERS([libpq-fe.h], 1340 AC_CHECK_HEADERS([libpq-fe.h],
1341 postgres=true) 1341 postgres=true)