Re: Q: explain on delete - Mailing list pgsql-general

From Tom Lane
Subject Re: Q: explain on delete
Date
Msg-id 8560.1044309677@sss.pgh.pa.us
Whole thread Raw
In response to Q: explain on delete  (Tilo Schwarz <mail@tilo-schwarz.de>)
Responses Re: Q: explain on delete
List pgsql-general
Tilo Schwarz <mail@tilo-schwarz.de> writes:
> So my question is: Is there another way besides "explain" to get information
> out of postgresql (7.3.1) what's going on during a "delete" on a table with
> many foreign key triggers .

IIRC, you can set log_statement=on before the first time you run the
DELETE in a given session, and then look in the postmaster log for
copies of the SQL statements that are generated by the foreign key
mechanism.  It's not great, particularly because you can't conveniently
see the associated plans, but it's better than nothing ...

            regards, tom lane

pgsql-general by date:

Previous
From: "Patric Bechtel"
Date:
Subject: Re: 335 times faster (!) [Viruschecked] [Viruschecked]
Next
From: Neil Conway
Date:
Subject: Re: 335 times faster (!)