IF NOT EXISTS option for CREATE SERVER and CREATE USER MAPPING statements

From: Anastasia Lubennikova <a(dot)lubennikova(at)postgrespro(dot)ru>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: IF NOT EXISTS option for CREATE SERVER and CREATE USER MAPPING statements
Date: 2017-01-13 13:36:37
Message-ID: 7c2ab9b8-388a-1ce0-23a3-7acf2a0ed3c6@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I implemented IF NOT EXISTS option for CREATE SERVER and CREATE USER
MAPPING statements
for one of our customers.
I think other users can also find it useful for scripting and automated
tasks.
The patches themselves are small and simple. Documentation is updated as
well.

--
Anastasia Lubennikova
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

Attachment Content-Type Size
create_foreign_server_if_not_exists.patch text/x-patch 4.1 KB
create_user_mapping_if_not_exists.patch text/x-patch 3.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2017-01-13 13:37:16 Re: parallelize queries containing subplans
Previous Message Tom Lane 2017-01-13 13:35:59 Re: [COMMITTERS] pgsql: Fix field order in struct catcache.