Discussion:
Postgres Admin - Export Database
(too old to reply)
JinNet Picker
2004-04-13 08:36:59 UTC
Permalink
Hi,

I am trying to take Database backup. I use this
command.

# ./pg_dump -U username -cif filename.sql dbname

Its exporting, but in the Log, its giving like

"LOG: out of file descriptors: Too many open files;
release and retry"

Can anybody tell me what is this? And what i have to
do clear this out??

Thanks.





__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/

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

http://www.postgresql.org/docs/faqs/FAQ.html
Greg Spiegelberg
2004-04-13 16:33:05 UTC
Permalink
Post by JinNet Picker
Hi,
I am trying to take Database backup. I use this
command.
# ./pg_dump -U username -cif filename.sql dbname
Its exporting, but in the Log, its giving like
"LOG: out of file descriptors: Too many open files;
release and retry"
Can anybody tell me what is this? And what i have to
do clear this out??
Try the pg_dump option "-F t". It will create a single tar file
that pg_restore can use.

./pg_dump -U username -ci -F t -f filename.tar dbname

Greg
--
Greg Spiegelberg
Product Development Manager
Cranel, Incorporated.
Phone: 614.318.4314
Fax: 614.431.8388
Email: ***@cranel.com
Technology. Integrity. Focus. V-Solve!



---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ***@postgresql.org
Tom Lane
2004-04-13 17:16:29 UTC
Permalink
Post by JinNet Picker
"LOG: out of file descriptors: Too many open files;
release and retry"
Can anybody tell me what is this? And what i have to
do clear this out??
You need to either increase your kernel's limit on the number of
simultaneously open files, or reduce Postgres' appetite for open files.
To do the latter, reduce max_files_per_process in postgresql.conf
(usually 50 to 100 should be an adequate setting that won't degrade
performance much). Doing the former depends on what platform you're on,
which you didn't say.

Although Postgres itself will usually survive well when the open-files
table is full, other applications on the system are likely to start
falling over :-(. So it's a real good idea to fix this one way or the
other.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Loading...