Re: [ADMIN] Open connections details

2005-11-08 Thread hubert depesz lubaczewski
On 11/8/05, Andrew Watters <[EMAIL PROTECTED]> wrote: I am trying to find details about open connections. I can see that thereare open connections through Tools | Server Status in pgAdmin III. Howcan I find what the current and/or last SQL statement was that was run in those open connections please

[ADMIN] Roomity.com v 1.5 is a web 2.01

2005-11-08 Thread shenanigans
I was interested in getting feedback from current mail group users.We have mirrored your mail list in a new application that provides a more aggregated and safe environment which utilizes the power of broadband.Roomity.com v 1.5 is a web 2.01 community webapp. Our newest version adds broadcast vide

Re: [ADMIN] Semi OT - Anyone monitoring PostgreSQL with nagios

2005-11-08 Thread Steve Crawford
On Tuesday 08 November 2005 05:10, Lane Van Ingen wrote: > What does the 'c' part of the -tc command do? It is not documented > in any information I have. Show tuples only (per psql --help) Cheers, Steve ---(end of broadcast)--- TIP 2: Don't 'kill

Re: [ADMIN] Semi OT - Anyone monitoring PostgreSQL with nagios

2005-11-08 Thread Eric Faulhaber
psql -c COMMAND DATABASE executes COMMAND using DATABASE and displays the results without starting psql interactively. Regards, Eric Faulhaber Lane Van Ingen wrote: What does the 'c' part of the -tc command do? It is not documented in any information I have. -Original Message- From

Re: [ADMIN] Semi OT - Anyone monitoring PostgreSQL with nagios

2005-11-08 Thread Jim C. Nasby
Same as -t -c... On Tue, Nov 08, 2005 at 08:10:28AM -0500, Lane Van Ingen wrote: > What does the 'c' part of the -tc command do? It is not documented in > any information I have. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Jim C. Nasby > Sent: Mo

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Joost Kraaijeveld
On Tue, 2005-11-08 at 13:29 -0500, Tom Lane wrote: > Joost Kraaijeveld <[EMAIL PROTECTED]> writes: > > Panoramix:/var/lib/postgresql/8.0/main# ls /opt/ -al > > total 56 > > drwxrwxrw- 14 root staff. >^ > > drwxr-xr-x 22 root root .. > > drwx-- 3 postgres postgres

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Jeff Frost
On Tue, 8 Nov 2005, Joost Kraaijeveld wrote: Panoramix:/var/lib/postgresql/8.0/main# ls /opt/pg_xlog/ -al total 295284 drwx-- 3 postgres postgres . drwxrwxrw- 14 root staff.. -rw--- 1 postgres postgres 0001003300B4 -rw--- 1 postgres postgres 0001003

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Tom Lane
Joost Kraaijeveld <[EMAIL PROTECTED]> writes: > Panoramix:/var/lib/postgresql/8.0/main# ls /opt/ -al > total 56 > drwxrwxrw- 14 root staff. ^ > drwxr-xr-x 22 root root .. > drwx-- 3 postgres postgres pg_xlog There's your problem --- postgres can't do lookups in /

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Bricklen Anderson
Joost Kraaijeveld wrote: > lrwxrwxrwx 1 root root pg_xlog -> /opt/pg_xlog Maybe this one here? Try chown'ing it to postgres:postgres and see what happens -- ___ This e-mail may be privileged and/or confidential, and the sender does not waive any related ri

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Joost Kraaijeveld
Hi Tom, On Tue, 2005-11-08 at 13:05 -0500, Tom Lane wrote: > Joost Kraaijeveld <[EMAIL PROTECTED]> writes: > >>> PANIC: could not open file > >>> "/var/lib/postgresql/8.0/main/pg_xlog/0001.history": Permission > >>> denied > > >> So what happens if you do: > >> ls -l /var/lib/postgresql/8.0/

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Tom Lane
Joost Kraaijeveld <[EMAIL PROTECTED]> writes: >>> PANIC: could not open file >>> "/var/lib/postgresql/8.0/main/pg_xlog/0001.history": Permission >>> denied >> So what happens if you do: >> ls -l /var/lib/postgresql/8.0/main/pg_xlog/0001.history > There is not a file with that name. Not

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Joost Kraaijeveld
Hi Jeff, On Tue, 2005-11-08 at 09:11 -0800, Jeff Frost wrote: > On Tue, 8 Nov 2005, Joost Kraaijeveld wrote: > > >> Joost Kraaijeveld <[EMAIL PROTECTED]> writes: > >>> PANIC: could not open file > >>> "/var/lib/postgresql/8.0/main/pg_xlog/0001.history": Permission > >>> denied > > So what h

Re: [ADMIN] upgrade from 8.0.3 to 8.1.0

2005-11-08 Thread Jeff Frost
Dan, Sure, just bring it up in a different directory and have it listen on a different port. You could either dump/restore to get the data over to it or use a replication tool such as slony or mammoth to do the deed. The latter method has the benefit of keeping it up to date while you poke a

Re: [ADMIN] upgrade from 8.0.3 to 8.1.0

2005-11-08 Thread Moises Alberto Lindo Gutarra
you only need make postgres 8.1.0 run using another port, example 5438 2005/11/8, Dan The Man <[EMAIL PROTECTED]>: > Hi, > I have enough resources on my 3 postgresql servers to run more than one > instance of postgres. Is there a way to keep my production db up and > running in 8.0.3 while I also

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Jeff Frost
On Tue, 8 Nov 2005, Joost Kraaijeveld wrote: Joost Kraaijeveld <[EMAIL PROTECTED]> writes: PANIC: could not open file "/var/lib/postgresql/8.0/main/pg_xlog/0001.history": Permission denied So what happens if you do: ls -l /var/lib/postgresql/8.0/main/pg_xlog/0001.history Can you po

[ADMIN] upgrade from 8.0.3 to 8.1.0

2005-11-08 Thread Dan The Man
Hi, I have enough resources on my 3 postgresql servers to run more than one instance of postgres. Is there a way to keep my production db up and running in 8.0.3 while I also run 8.1.0 on the same server? Then, I could copy the data and support two databases until things looked good. Then,

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Joost Kraaijeveld
On Tue, 2005-11-08 at 10:59 -0500, Tom Lane wrote: > Seems *highly* unlikely, though I suppose you could ask the Debian > maintainer what he changed between -7 and -15. I have triple checked, I even let someone else do the same procedure but history repeats itself. It does not work. I have send the

Re: [ADMIN] Semi OT - Anyone monitoring PostgreSQL with nagios

2005-11-08 Thread Lane Van Ingen
What does the 'c' part of the -tc command do? It is not documented in any information I have. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jim C. Nasby Sent: Monday, November 07, 2005 5:38 PM To: Chris Hoover Cc: pgsql-admin@postgresql.org Subject: Re: [AD

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Tom Lane
"Joost Kraaijeveld" <[EMAIL PROTECTED]> writes: > I checked all this with another Debian box which has a slightly other > PostgreSQL version and there it works as advertised. So PostgreSQL > 8.0.3-7 works with symlinked pg_xlog directory and PostgreSQL 8.0.3-15 > does not. Seems *highly* unlikely,

[ADMIN] Problems with 8.1 initdb

2005-11-08 Thread Chris Hoover
I just tried to install 8.1 from the rpms provided on the postgresql.org mirrors. I had 8.0 installed, and removed all the 8.0 rpms.  I then blew away my 8.0 cluster (playing with a test server, obviously).  When I recreated the directory for the cluster and tried to run initdb, initdb abended wit

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Joost Kraaijeveld
Hi Tom, > Joost Kraaijeveld <[EMAIL PROTECTED]> writes: > > PANIC: could not open file > > "/var/lib/postgresql/8.0/main/pg_xlog/0001.history": Permission > > denied > > Read the error message! You have a permissions problem --- > most likely, > some directory in the path to the new xlog d

[ADMIN] Open connections details

2005-11-08 Thread Andrew Watters
Hi I am trying to find details about open connections. I can see that there are open connections through Tools | Server Status in pgAdmin III. How can I find what the current and/or last SQL statement was that was run in those open connections please? Thanks for your help Andrew --

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Tom Lane
Joost Kraaijeveld <[EMAIL PROTECTED]> writes: > PANIC: could not open file > "/var/lib/postgresql/8.0/main/pg_xlog/0001.history": Permission > denied Read the error message! You have a permissions problem --- most likely, some directory in the path to the new xlog directory isn't readable by

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread MaXX
Joost Kraaijeveld wrote: > On Mon, 2005-11-07 at 23:46 -0800, Jeff Frost wrote: >> So, what happens if you do this as the postgres user: >> ls -l /var/lib/postgresql/8.0/main/pg_xlog/ >> I'm going to guess the output indicates you have a directory inside >> pg_xlog called pg_xlog_orig. > Sorry, cop

[ADMIN] Could not create unique index, table contains duplicated values

2005-11-08 Thread Martin Schievink
We’re having problems restoring a database, we dumped and tried to restore on the same databaseserver., and used the command:   pg_dump -Ft -b {dbname} > {filename}   to dump the database and   pg_restore -d {dbname}  {filename}   to restore the database. At some point we’re gettin

Re: [ADMIN] Moving pg_xlog problem

2005-11-08 Thread Joost Kraaijeveld
On Mon, 2005-11-07 at 23:46 -0800, Jeff Frost wrote: > So, what happens if you do this as the postgres user: > > ls -l /var/lib/postgresql/8.0/main/pg_xlog/ > > I'm going to guess the output indicates you have a directory inside pg_xlog > called pg_xlog_orig. Sorry, copied and pasted the wrong p