Re: FDW oddity

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: FDW oddity
Date: 2015-04-11 21:10:25
Message-ID: 1604.1428786625@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> I have just noticed something slightly odd. The traces (obtained by
> setting client_min_messages to debug1) from the blackhole FDW show that
> the handler function is called each time an INSERT is performed. This is
> not the case for SELECT, UPDATE or DELETE. It looks at first glance like
> a buglet. Can anyone suggest why this should be so?

What do you mean by "the handler function", and for that matter what do
you define as "each time"? The ExecForeignInsert method certainly ought
to be called once per row inserted, but the same is true of
ExecForeignUpdate and ExecForeignDelete. The setup methods such as
BeginForeignModify should only be called once per query though.

regards, tom lane

In response to

  • FDW oddity at 2015-04-11 20:56:06 from Andrew Dunstan

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-04-11 21:30:27 Re: Revisiting Re: BUG #8532: postgres fails to start with timezone-data >=2013e
Previous Message Andrew Dunstan 2015-04-11 20:56:06 FDW oddity