Re: truncate trigger for foreign data wrappers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Murat Tuncer <mtuncer(at)citusdata(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: truncate trigger for foreign data wrappers
Date: 2016-08-05 14:33:49
Message-ID: 4436.1470407629@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Murat Tuncer <mtuncer(at)citusdata(dot)com> writes:
> I recently hit a road blocker when I tried to create a truncate trigger on
> a foreign table. trigger.c::CreateTrigger() function has explicit check to
> block truncate trigger on foreign tables.

That's good, because we don't implement TRUNCATE on foreign tables: there
is nothing in the FDW API that would support it. Not much point in
declaring a trigger for an event that can never happen.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kenneth Marshall 2016-08-05 14:39:17 Hash index with larger hashes
Previous Message Tom Lane 2016-08-05 14:27:41 Re: Bogus ANALYZE results for an otherwise-unique column with many nulls