root/sql/sprocs/stratcon.parent_empty.sql

Revision 014002aa7bb9d9bf9492f375acfb7389432ab3c9, 239 bytes (checked in by Theo Schlossnagle <jesus@omniti.com>, 5 years ago)

add back in the partitioning maintenance functions

  • Property mode set to 100644
Line 
1 CREATE OR REPLACE FUNCTION stratcon.parent_empty() RETURNS TRIGGER
2 AS $$
3 BEGIN
4     RAISE EXCEPTION 'Cannot insert into parent table';
5     RETURN NULL;
6 END
7 $$ LANGUAGE plpgsql;
8
9 GRANT EXECUTE ON FUNCTION stratcon.parent_empty() TO public;
10
Note: See TracBrowser for help on using the browser.