postgres-9.4

pg_restore: [archiver] unsupported version (1.13) in file header

心不动则不痛 提交于 2020-06-13 00:10:23
问题 C:\Program Files (x86)\pgAdmin III\1.22\pg_restore.exe --host localhost --port 5432 --username "postgres" --dbname "randd" --role "postgres" --no-password --verbose "C:\Users\ranjeet\Desktop\RandDbackup19-3final.backup" pg_restore: [archiver] unsupported version (1.13) in file header 回答1: This error means that you are using an old and outdated version of pg_restore (and hence PostgreSQL) on the client side. The dump was created by a more recent release of PostgreSQL that the one installed, so

how to query for min or max inet/cidr with postgres

梦想的初衷 提交于 2019-12-24 00:20:09
问题 Consider query: select min(d) from temp; select max(d) from temp; Either one, I get an error like: # select max(d) from temp; ERROR: function max(inet) does not exist LINE 1: select max(d) from temp; ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. So, I create a table called temp and populate it: create table temp (d inet); insert into temp (d) values ('1.1.10.2'); insert into temp (d) values ('1.1.10.10'); insert into temp (d) values