pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jaime Casanova <el_vigia_ec@hotmail.com>
To: pgsql-general@postgresql.org
To: pgsql-admin@postgresql.org
To: pgsql-hackers@postgresql.org
Subject: Re: [GENERAL] [HACKERS] retrieve statement from catalogs
Date: Fri, 07 Nov 2003 22:59:39 +0000
Message-ID: <BAY8-F55gm0YQFM8NC500017346@hotmail.com> (raw)


Hi everybody, can anyone tell me if there's a way to retrieve the select 
instruction executed from the catalogs, or maybe via some structure in a 
trigger?

The reason is that i have some selects constructed on-the-fly (just part of 
it) and i want to save that in a table in order to know what are the most 
used for optimizing them.

Another reason for doing that is that i don't know all the selects in the 
program nor the page and this is an easier solution than examine all the 
code.

thanx in advance, el_vigia

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




view thread (2+ messages)

Message-ID: <BAY8-F55gm0YQFM8NC500017346@hotmail.com>
Permalink:  ../BAY8-F55gm0YQFM8NC500017346@hotmail.com/
Also on:    postgresql.org/message-id/BAY8-F55gm0YQFM8NC500017346@hotmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: el_vigia_ec@hotmail.com, pgsql-general@postgresql.org, pgsql-hackers@postgresql.org
  Subject: Re: [GENERAL] [HACKERS] retrieve statement from catalogs
  In-Reply-To: <BAY8-F55gm0YQFM8NC500017346@hotmail.com>
  References: <BAY8-F55gm0YQFM8NC500017346@hotmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox