Re: [ADMIN] Restoring selected records from backup file

2012-03-06 Thread davidh
The only way I know of doing this is to restore the backup to a separate database or table and doing a "SELECT INTO" statement. The only caveat is that you need to make sure you delete the outdated records from the prod table. To do this you may have to temporarily disable foreign key enforcing.

[ADMIN] pg_dump : no tables were found.

2012-03-06 Thread Piyush Lenka
Hi, I m trying to take backup of data of a particular table using pg_dump. I used double quotes for table name but output is : pg_dump : no tables were found. Command used : -h localhost -p 5432 -U postgres -W -F p -a -t '"TestTable"' -f DbBackup/BackupTableActions.sql TestDataBase This problem

Re: [ADMIN] pg_dump : no tables were found.

2012-03-06 Thread Julien Rouhaud
On Tue, Mar 6, 2012 at 7:22 AM, Piyush Lenka wrote: > Hi, > > I m trying to take backup of data of a particular table using pg_dump. > I used double quotes for table name but output is : > pg_dump : no tables were found. > > Command used : > -h localhost -p 5432 -U postgres -W -F p -a -t '"TestTa

[ADMIN] I've got gaps in the log files?

2012-03-06 Thread Andreas
Hi, it appeares I've got gaps in the log files. It's a PG 9.1 from the OpenSuse 12.1 distribution. I know the server is running so it should dump it's feelings all the time in those files in PGDATA/pg_log. But I find huge gaps where nothing is written. E.g. yesterday the last entry is at 09.5

Re: [ADMIN] I've got gaps in the log files?

2012-03-06 Thread Tom Lane
Andreas writes: > it appeares I've got gaps in the log files. > It's a PG 9.1 from the OpenSuse 12.1 distribution. > I know the server is running so it should dump it's feelings all the > time in those files in PGDATA/pg_log. > But I find huge gaps where nothing is written. The only suggestion

[ADMIN] logging issue

2012-03-06 Thread Campbell, Lance
PostgreSQL 9.1.3 I just moved our test database from PostgreSQL 9.0 to 9.1. I also changed my log settings. I am seeing every single SQL statement that PostgreSQL performs by my Java applications. Is there some way to only display the details when there is an error? I would assume yes. Bu

Re: [ADMIN] logging issue

2012-03-06 Thread Jerry Sievers
"Campbell, Lance" writes: > PostgreSQL 9.1.3 > > I just moved our test database from PostgreSQL 9.0 to 9.1. I also > changed my log settings. I am seeing every single SQL statement > that PostgreSQL performs by my Java applications. Is there some way > to only display the details when there is

Re: [ADMIN] I've got gaps in the log files?

2012-03-06 Thread Andreas
Am 06.03.2012 18:38, schrieb Tom Lane: Andreas writes: it appeares I've got gaps in the log files. It's a PG 9.1 from the OpenSuse 12.1 distribution. I know the server is running so it should dump it's feelings all the time in those files in PGDATA/pg_log. But I find huge gaps where nothing is

Re: [ADMIN] I've got gaps in the log files?

2012-03-06 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 > I left them on defaults. > Actually they are even commented out. Never assume that the commented out version == default == actual value. Always explicitly set parameters you care about. - -- Greg Sabino Mullane g...@turnstep.com End Point