Re: constraint triggers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gilberto Castillo Martínez<gilberto.castillo@xxxxxxxxx> wrote:
 
>> CREATE OR REPLACE FUNCTION increment_dataset_granule_count()
 
>>         RETURN NULL;
 
> Replace RETURN NULL for RETURN NEW
 
That won't matter for an AFTER trigger:
 
http://www.postgresql.org/docs/9.0/interactive/trigger-definition.html
 
says:
 
| The return value is ignored for row-level triggers fired after an
| operation, and so they can return NULL.
 
-Kevin

-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux