Re: [HACKERS] Triggers on foreign tables

2013-10-09 Thread Ronan Dunklau
Le dimanche 6 octobre 2013 22:33:23 Kohei KaiGai a écrit : > 2013/9/10 Ronan Dunklau : > > For row-level triggers, it seems more complicated. From what I understand, > > OLD/NEW tuples are fetched from the heap using their ctid (except for > > BEFORE INSERT triggers). How could this be adapted for

Re: [HACKERS] PSQL return coder

2013-10-09 Thread Tom Lane
James Sewell writes: > My question is in a rollback scenario is it possible to get PSQL to return > a non 0 exit status? Maybe you could use -c instead of -f? $ psql -c 'select 1; select 1/0' regression ERROR: division by zero $ echo $? 1 You won't need explicit BEGIN/END because this is alrea

<    1   2