[ADMIN] Postgres 8.1.4 is not starting in RHEL 4

2006-11-30 Thread Manish Pillai
Hi I installed 8.1.4 POSTGRESQL RPMS on my system. When I tried to run /etc/init.d/postgresql start I got this error. [EMAIL PROTECTED] init.d]# ./postgresql start Initializing database: mkdir: cannot create directory `/var/lib/pgsql/data/pg_log': File exists [FAILED] Starting postgresql se

[ADMIN] PostgreSQL and Performance of Functions

2006-11-30 Thread Aaron Bono
Recently I have been put on a project that uses DB2 (not my choice). I am using functions for reports and was told this may not be allowed. They said: One gap is the ability to tune the code in the function (not really static) or to perform real-time analysis of performance problems. I normall

Re: [ADMIN] Backup of a big DB with a lot of large objects

2006-11-30 Thread Steve Holdoway
On Thu, 30 Nov 2006 18:12:31 +0200 "Milen A. Radev" <[EMAIL PROTECTED]> wrote: > We have a big DB that's backuped nightly using pg_dump in the custom > format. Most of its size are several thousand large objects. During > the dump of those LO the machine is heavily loaded so we are looking > for a

[ADMIN] Backup of a big DB with a lot of large objects

2006-11-30 Thread Milen A. Radev
We have a big DB that's backuped nightly using pg_dump in the custom format. Most of its size are several thousand large objects. During the dump of those LO the machine is heavily loaded so we are looking for a way to "optimise" that part of backup process. We had an idea to backup the DB but wit

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread Bradley Kieser
Hmm, not entirely true. You may well only see the error in the process itself. Geoffrey wrote: Alvaro Herrera wrote: John Allgood wrote: Hey Tom I assume that if it is the kernel running out of descriptors that I would get the messages in dmesg. This message only appears in the log file

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread Geoffrey
Tom Lane wrote: Geoffrey <[EMAIL PROTECTED]> writes: Alvaro Herrera wrote: Yes. Which is kinda weird, because Postgres actually tests the number when it starts, so that if you set the number too high, it will decrease it according to what the kernel allows. Maybe the test is newer than the ve

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread Tom Lane
Geoffrey <[EMAIL PROTECTED]> writes: > Alvaro Herrera wrote: >> Yes. Which is kinda weird, because Postgres actually tests the number >> when it starts, so that if you set the number too high, it will decrease >> it according to what the kernel allows. >> >> Maybe the test is newer than the versi

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread Geoffrey
Tom Lane wrote: Geoffrey <[EMAIL PROTECTED]> writes: I work with the original poster and wanted to make sure the problem here is clear. The 'out of file descriptors' message is coming from Postgresql, not the kernel. Thus, it doesn't make sense to me that the max_files_per_process setting is

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread Tom Lane
Geoffrey <[EMAIL PROTECTED]> writes: > I work with the original poster and wanted to make sure the problem here > is clear. The 'out of file descriptors' message is coming from > Postgresql, not the kernel. Thus, it doesn't make sense to me that the > max_files_per_process setting is too high.

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread Geoffrey
Alvaro Herrera wrote: Geoffrey wrote: Okay, I'm just not getting it. Postgres complains that it is out of file descriptors. The kernel is not complaining about any such issues. So I should lower the max_files_per_process value and this will rid us of the 'out of f

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread John Allgood
Maybe the whole problem is with ulimit. Ulimit sets the max files per user at the shell and postgres might be exceeding the 1024 limit. What would increasing this value to 2048 do? Geoffrey wrote: > Alvaro Herrera wrote: >> Geoffrey wrote: >>> Alvaro Herrera wrote: John Allgood wrote: > H

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread Alvaro Herrera
Geoffrey wrote: > Okay, I'm just not getting it. Postgres complains that it is out of > file descriptors. The kernel is not complaining about any such issues. > > > So I should lower the max_files_per_process > value and this will rid us of the 'out of file descripto

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread Geoffrey
Bradley Kieser wrote: Hmm, not entirely true. You may well only see the error in the process itself. You're telling me that the kernel could be running out of file descriptors and I wouldn't see a message regarding this in the kernel logs? I don't believe that is possible. Geoffrey wrot

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread Geoffrey
Alvaro Herrera wrote: Geoffrey wrote: Alvaro Herrera wrote: John Allgood wrote: Hey Tom I assume that if it is the kernel running out of descriptors that I would get the messages in dmesg. This message only appears in the log file for that database. Yeah, the point is that you have the ma

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread Alvaro Herrera
Geoffrey wrote: > Alvaro Herrera wrote: > >John Allgood wrote: > >>Hey Tom > >> > >>I assume that if it is the kernel running out of descriptors that I > >>would get the messages in dmesg. This message only appears in the log > >>file for that database. > > > >Yeah, the point is that you have t

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread Geoffrey
Alvaro Herrera wrote: John Allgood wrote: Hey Tom I assume that if it is the kernel running out of descriptors that I would get the messages in dmesg. This message only appears in the log file for that database. Yeah, the point is that you have the max_files_per_process setting higher tha

Re: [ADMIN] dump from 8.x restore to 7.3.x

2006-11-30 Thread Peter Eisentraut
Shane Ambler wrote: > I don't see that as being the case - there will be exceptions where > you have new features in an 8.x database that won't work in a 7.x db > but otherwise it shouldn't matter, the dumps can be used to import > into other databases than postgres as long as you use dump with > i

Re: [ADMIN] Out of file-descriptors message

2006-11-30 Thread John Allgood
Alvaro Herrera wrote: > John Allgood wrote: > >> Hey Tom >> >> I assume that if it is the kernel running out of descriptors that I >> would get the messages in dmesg. This message only appears in the log >> file for that database. >> > > Yeah, the point is that you have the max_files_pe

Re: [ADMIN] dump from 8.x restore to 7.3.x

2006-11-30 Thread Shane Ambler
Richard Broersma Jr wrote: My understanding is that dumps are not backwards compatible. Any dumps created with a Version 8.* pg_dump cannot be used for any older versions. If you want "play it safe" you should create a new server for the postgresql version 8.1 to preform validation tests wit