dbTalk Databases Forums  

pg_restore: [archiver (db)] could not execute query: ERROR: zero-lengthdelimited identifier at or near """" at character 60

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss pg_restore: [archiver (db)] could not execute query: ERROR: zero-lengthdelimited identifier at or near """" at character 60 in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Shahryar G. Hashemi
 
Posts: n/a

Default pg_restore: [archiver (db)] could not execute query: ERROR: zero-lengthdelimited identifier at or near """" at character 60 - 01-01-2007 , 04:29 PM






Hello,

We are running PostgreSQL 7.4.7 on a Linux system. We have a primary DB
and hot-standby [via pg_dump/pg_restore]. A few weeks ago we had a
database corruption and had to go back to a dump from 12/20/2006.
Everything restored fine [on the primary and standby DB's] however
everytime we perform a pg_dump/pg_restore we get this error:

pg_restore: creating TABLE account_password
pg_restore: creating FUNCTION trig_account_insert()
pg_restore: creating FUNCTION trig_account_password_insert()
pg_restore: creating ACL trig_account_password_insert()
pg_restore: [archiver (db)] could not execute query: ERROR: zero-length
delimited identifier at or near """" at character 60
pg_restore: *** aborted because of error

Here is how we run the pg_dump command:
pg_dump -C -v -U hydra -f <backup_file> -Fc hydra
Here is how we run the pg_restore command:
pg_restore -v -C -h bvmgdb2a -U hydra -d template1 <backup_file>

I can get the pg_restore to complete if I add the -x [ignore ACL
[grant/revoke]. But my question is what is wrong with the ACL
trig_account_password_insert() and how can I fix it on the production DB
so this error can go away? The error makes zero sense. The
documentation leaves a lot to be desired.

BTW I am a Sybase/SQL Server DBA so PostgreSQL is another world to me.

Thanks,

Shahryar

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.