Idempotency for all DDL statements - Mailing list pgsql-hackers

From Kenaniah Cerny
Subject Idempotency for all DDL statements
Date
Msg-id CA+r_aq8-ZfKd8cwydN1mQAzFQ3JrdcBHWMuEMt9_ofoKRam_6A@mail.gmail.com
Whole thread Raw
Responses Re: Idempotency for all DDL statements  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
Hello everyone. This is my first time posting in -hackers, so please keep this in mind. 

I would like to formally request the addition of "IF EXISTS", "IF NOT EXISTS", "OR REPLACE", and any other CINE variants to DDL statements that currently do not feature an idempotent construct.

The lack of an idempotent option in statements such as "CREATE TRIGGER" for example is particularly painful when performing upgrades on sizable schemas. 

I understand that there may be some difficulties in providing this to various database objects. That said, I believe IMHO that this would be a huge win for the community at large. Could I request DDL idempotency as an addition to the development roadmap?

Thanks,

Kenaniah

pgsql-hackers by date:

Previous
From: Corey Huinker
Date:
Subject: Re: COPY as a set returning function
Next
From: Tom Lane
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Replace PostmasterRandom() with a stronger way of generating ran