Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 22nd, 2005, 08:49 AM
nednieuws | charles
Guest
 
Posts: n/a
Default Error with pg_restore (parse error at or near "BY" at character 144

What does this error mean:

pg_restore: creating TABLE author
pg_restore: creating SEQUENCE author_id
pg_restore: [archiver (db)] could not execute query: ERROR: parser: parse error at or near "BY" at character 144
pg_restore: *** aborted because of error



The line in question is:

GRANT ALL ON TABLE author TO GROUP dvnl;
[...]
);

^A^A
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;

^A^A



The command used to restore the db:

pg_restore --dbname=dvnl --format=t --verbose --username=dvnl --no-privileges --no-owner dvnldump.tar



The source db is PostgreSQL 7.4 and the target db is 7.3.3
--
Regards, Charels.


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend




  #2  
Old November 22nd, 2005, 08:49 AM
Tom Lane
Guest
 
Posts: n/a
Default Re: Error with pg_restore (parse error at or near "BY" at character 144

"nednieuws | charles" <charles@nednieuws.com> writes:[color=blue]
> The source db is PostgreSQL 7.4 and the target db is 7.3.3[/color]

pg_dump is not designed to handle downgrades --- its output is intended
to be loaded into pg_dump's own version or later. You should expect to
have to hand-edit the output to load it into an older version.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.