dbTalk Databases Forums  

[BUGS] BUG #2049: pg_dump BACKUP error

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2049: pg_dump BACKUP error in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Prakash Suryavanshi
 
Posts: n/a

Default [BUGS] BUG #2049: pg_dump BACKUP error - 11-18-2005 , 07:57 AM







The following bug has been logged online:

Bug reference: 2049
Logged by: Prakash Suryavanshi
Email address: cadet_02prakash (AT) yahoo (DOT) com
PostgreSQL version: 7.2
Operating system: Linux
Description: pg_dump BACKUP error
Details:

Respected Sir,
I am working on Linux 9.0 and using postgres 7.2 on it. I am facing
problem while taking backup of database. I am elaborating situation as
follows.

Pg_dump commond used to take a backup of my database the command which I
used is as follows

Quote:
pg_dump <Database name> > <target file name
system flashes error as follows

bash-2.05b$ pg_dump chrome2105 > 2nov1505
pg_dump: ERROR: _mdfd_getrelnfd: cannot open relation ed_accounttype:
Permission denied
pg_dump: lost synchronization with server, resetting connection
pg_dump: SQL command to dump the contents of table "ed_accounttype" failed:
PQendcopy() failed.
pg_dump: Error message from server: pg_dump: The command was: COPY
public.ed_accounttype (accounttypeid, sname, shname, des, active,
systemflag, softdelete, datalocationid) TO stdout;
bash-2.05b$

Can anybody send me solution how to take backup if above error occured..?
This is happening frequently. I had formated the server and again installed
Linux then restore database steel problem persist.

hopping to get early response.

Thanks and regards
Prakash Suryavanshi
iota technologies ltd., Pune

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2049: pg_dump BACKUP error - 11-18-2005 , 09:18 AM






"Prakash Suryavanshi" <cadet_02prakash (AT) yahoo (DOT) com> writes:
Quote:
system flashes error as follows

bash-2.05b$ pg_dump chrome2105 > 2nov1505
pg_dump: ERROR: _mdfd_getrelnfd: cannot open relation ed_accounttype:
Permission denied
You've apparently started the postmaster as the wrong user, or else
someone's changed the ownership/permissions of the database files
underneath you. Every file within the $PGDATA directory tree ought to
be owned by the user that the postmaster runs as, and readable/writable
only by that user (mode -rw-------, or -rwx------ for directories).

Note that pg 7.2 is horribly ancient --- you should update to something
newer and still-supported as soon as you get that dump made.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


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.