Use Trigger to Remove Table itself when there is no row after delete

From: Yan Cheng Cheok <yccheok(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Use Trigger to Remove Table itself when there is no row after delete
Date: 2010-02-02 03:38:19
Message-ID: 489855.46673.qm@web65703.mail.ac4.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

May I know how I can use trigger technique, to remove the table itself, when after delete operation, there is 0 row in the table?

Thanks and Regards
Yan Cheng CHEOK

Browse pgsql-general by date

  From Date Subject
Next Message Yan Cheng Cheok 2010-02-02 03:40:47 Is this the warning message I should pay attention on it, during table partition
Previous Message Greg Smith 2010-02-02 03:17:25 Re: Connect to Postgres problems