Re: Retrieving affected tables

From: Richard Huxton <dev(at)archonet(dot)com>
To: Hannes Dorbath <light(at)theendofthetunnel(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Retrieving affected tables
Date: 2007-02-06 14:00:59
Message-ID: 45C88A1B.9010802@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hannes Dorbath wrote:
> On 06.02.2007 14:19, Richard Huxton wrote:
>>> What is best way to retrieve all affected tables of an select
>>> statement? (Besides parsing the raw SQL).
>>
>> From where? As a client-application function? As a user-callable
>> function in the server? From within the parse/execute code?
>
> From a client application.

Parsing the sql is the only way I can think of.

You could feed it through EXPLAIN I suppose, but there's no way to dump
the query-plan as a data-structure to the client. You can log a verbose
query-plan, but that's not going to help you.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-02-06 14:07:42 Re: Compilation Error AIX
Previous Message Jeanna Geier 2007-02-06 14:00:42 Re: Problems With DELETE