Re: [GENERAL] Streaming replication: sequences on slave seemingly ahead of sequences on master

2012-05-06 Thread Simon Riggs
On 4 May 2012 14:55, Vincent de Phily wrote: > It all seems to be working fine, except that when checking the data (selecting > latest primary key and sequence value for all tables) on master and slave, > some sequence ids are higher on the slave than on the master. I could > understand if they w

[GENERAL] how to amend SQL standard to add comments?

2012-05-06 Thread Aleksey Tsalolikhin
Hi. Does anybody here know how to add comments to the SQL standard? I believe this would benefit lots of people. Situation: When a system administrator or database administrator looks at a gnarly SQL query chewing up system resources, there is no way to tell by looking at the query server-side w

Re: [GENERAL] how to amend SQL standard to add comments?

2012-05-06 Thread Thomas Kellerer
Aleksey Tsalolikhin wrote on 06.05.2012 19:24: Situation: When a system administrator or database administrator looks at a gnarly SQL query chewing up system resources, there is no way to tell by looking at the query server-side which application it came from, what its purpose is, and who the au

[GENERAL] Is there a tool for checking database integrity

2012-05-06 Thread Clemens Eisserer
Hi, Is there a tool for checking a postgresql database for integrity, so I would be notified immediatly if something went wrong e.g. with memory and can go back to the last good backup? Such a tool would guarantee me I am not sitting on a ticking time bomb (corrupted database) without even noticin

Re: [GENERAL] how to amend SQL standard to add comments?

2012-05-06 Thread Tom Lane
Thomas Kellerer writes: > Aleksey Tsalolikhin wrote on 06.05.2012 19:24: >> Situation: When a system administrator or database administrator looks at >> a gnarly SQL query chewing up system resources, there is no way to tell >> by looking at the query server-side which application it came from, w

Re: [GENERAL] Is there a tool for checking database integrity

2012-05-06 Thread Tomas Vondra
Hi, On 6.5.2012 20:47, Clemens Eisserer wrote: > Hi, > > Is there a tool for checking a postgresql database for integrity, so I > would be notified immediatly if something went wrong e.g. with memory > and can go back to the last good backup? > Such a tool would guarantee me I am not sitting on a

Re: [GENERAL] Is there a tool for checking database integrity

2012-05-06 Thread Bruce Momjian
On Mon, May 07, 2012 at 12:37:47AM +0200, Tomas Vondra wrote: > Hi, > > On 6.5.2012 20:47, Clemens Eisserer wrote: > > Hi, > > > > Is there a tool for checking a postgresql database for integrity, so I > > would be notified immediatly if something went wrong e.g. with memory > > and can go back t

Re: [GENERAL] Is there a tool for checking database integrity

2012-05-06 Thread Tomas Vondra
On 7.5.2012 00:56, Bruce Momjian wrote: > On Mon, May 07, 2012 at 12:37:47AM +0200, Tomas Vondra wrote: >> Hi, >> >> On 6.5.2012 20:47, Clemens Eisserer wrote: >>> Hi, >>> >>> Is there a tool for checking a postgresql database for integrity, so I >>> would be notified immediatly if something went w

Re: [GENERAL] spanish locale question

2012-05-06 Thread Tulio
Thank you Laurenz for your answer. I think I understand the meaning of ORDER BY my problem is the understanding of COLLATE functionality. I thought that if I collate in es.PE (Spanish) the "o" has the exact value of "รณ" so if I INSERT INTO pru VALUES (8, 'leo','zara', 'juan'); How can I obtain

Re: [GENERAL] Lost one tablespace - can't access whole database

2012-05-06 Thread Michael Nolan
On Sat, May 5, 2012 at 4:19 PM, Stefan Tzeggai wrote: > Hi > > postgresql 9.1 on Ubuntu 10.04 > > All important information is in the other tablespaces. I would be > totally happy to just loose all relations in that lost tablespace. It's > just indexes. Is there any way to tell PG to drop/ignore t