pg.ddx.io  pgsql-patches@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndquadrant.com>
To: ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [PATCHES] WIP: executor_hook for pg_stat_statements
Date: Mon, 07 Jul 2008 08:10:00 +0100
Message-ID: <1215414601.4051.432.camel@ebony.site> (raw)
In-Reply-To: <20080707104202.73E5.52131E4D@oss.ntt.co.jp>
References: <20080623150535.946E.52131E4D@oss.ntt.co.jp>
	<1215161065.4051.26.camel@ebony.site>
	<20080707104202.73E5.52131E4D@oss.ntt.co.jp>


On Mon, 2008-07-07 at 11:03 +0900, ITAGAKI Takahiro wrote:
> Simon Riggs <simon@2ndquadrant.com> wrote:
> 
> > > The attached patch (executor_hook.patch) modifies HEAD as follows.
> > > 
> > > - Add "tag" field (uint32) into PlannedStmt.
> > > - Add executor_hook to replace ExecutePlan().
> > > - Move ExecutePlan() to a global function.
> > 
> > The executor_hook.patch is fairly trivial and I see no errors.
> > 
> > The logic of including such a patch is clear. If we have a planner hook
> > then we should also have an executor hook.
> 
> One issue is "tag" field. The type is now uint32. It's enough in my plugin,
> but if some people need to add more complex structures in PlannedStmt,
> Node type would be better rather than uint32. Which is better?

I was imagining that tag was just an index to another data structure,
but probably better if its a pointer.

-- 
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support




view thread (14+ messages)  latest in thread

Message-ID: <1215414601.4051.432.camel@ebony.site>
Permalink:  ../1215414601.4051.432.camel@ebony.site/
Also on:    postgresql.org/message-id/1215414601.4051.432.camel@ebony.site

 · 

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-patches@postgresql.org
  Cc: simon@2ndquadrant.com, itagaki.takahiro@oss.ntt.co.jp, pgsql-hackers@postgresql.org
  Subject: Re: [PATCHES] WIP: executor_hook for pg_stat_statements
  In-Reply-To: <1215414601.4051.432.camel@ebony.site>
  References: <20080623150535.946E.52131E4D@oss.ntt.co.jp> <1215161065.4051.26.camel@ebony.site> <20080707104202.73E5.52131E4D@oss.ntt.co.jp> <1215414601.4051.432.camel@ebony.site>

* 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