using DDL in a function

From: Dmitriy Agafonov <Dmitriy(dot)Agafonov(at)msdw(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: using DDL in a function
Date: 2000-09-05 15:33:58
Message-ID: 39B51266.BF575F2C@msdw.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I would like to alter a table (add column) when a row is inserted into
another one, but as far as I understand no DDL statements can appear in
the pgplsql functions. Is there any way I can do that?
I need more than that actually. The names of the table to be altered and
the column which has to be added (and also type and other attributes)
should come from the row being inserted. Does PosgtreSQL have some kind
of Dynamic SQL?
Thank you,
Dmitriy Agafonov.

Browse pgsql-general by date

  From Date Subject
Next Message Zeljko Trogrlic 2000-09-05 15:49:57 Re: Column name case conversion
Previous Message Oliver Elphick 2000-09-05 14:52:26 Re: Column name case conversion