Re: [PERFORM] how to output column names

2007-04-19 Thread Michael Dengler
Perfect! thanks for the help!. Mike On 4/19/07, Jon Sime <[EMAIL PROTECTED]> wrote: Michael Dengler wrote: > Hi, > > Is there a query I can perform (perhaps on a system table) to return all > of the column names (ONLY the column names) for a given DB? (I seem to > remember doing this before

Re: [PERFORM] how to output column names

2007-04-19 Thread Jon Sime
Michael Dengler wrote: > Hi, > > Is there a query I can perform (perhaps on a system table) to return all > of the column names (ONLY the column names) for a given DB? (I seem to > remember doing this before but cant remember how) > > Thanks > > Mike > The 'columns' view in information_schema

[PERFORM] how to output column names

2007-04-19 Thread Michael Dengler
Hi, Is there a query I can perform (perhaps on a system table) to return all of the column names (ONLY the column names) for a given DB? (I seem to remember doing this before but cant remember how) Thanks Mike

Re: [PERFORM] Foreign Key Deadlocking

2007-04-19 Thread Csaba Nagy
> A frequently mentioned approach to avoid the point of contention is to > have a "totals" record and have the triggers insert "deltas" records; to > get the sum, add them all. Periodically, take the deltas and apply them > to the totals. This is what we do here too. There is only one exception t

Re: [PERFORM] Foreign Key Deadlocking

2007-04-19 Thread Alvaro Herrera
Dave Cramer escribió: > Hi Csaba, > > I have a similar problem. > > In an attempt to avoid the overhead of select count(*) from mailbox > where uid = somuid I've implemented triggers on insert and delete. > > So there is a > > user table which refers to to an inbox table, > > so when people

Re: [PERFORM] Foreign Key Deadlocking

2007-04-19 Thread Erik Jones
On Apr 19, 2007, at 9:00 AM, Dave Cramer wrote: On 18-Apr-07, at 11:36 AM, Csaba Nagy wrote: Can someone confirm that I've identified the right fix? I'm pretty sure that won't help you... see: http://archives.postgresql.org/pgsql-general/2006-12/msg00029.php The deadlock will be there if

Re: [PERFORM] Foreign Key Deadlocking

2007-04-19 Thread Dave Cramer
Hi Csaba, I have a similar problem. In an attempt to avoid the overhead of select count(*) from mailbox where uid = somuid I've implemented triggers on insert and delete. So there is a user table which refers to to an inbox table, so when people insert into the inbox there is an RI trigger