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

From: Anastasia Lubennikova <a(dot)lubennikova(at)postgrespro(dot)ru>
To: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: IF NOT EXISTS option for CREATE SERVER and CREATE USER MAPPING statements
Date: 2017-02-15 17:54:43
Message-ID: d5993f84-cefb-55a4-f052-6fc090183fd6@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-hackers

13.02.2017 19:34, Andrew Dunstan:
>
> On 01/13/2017 08:36 AM, Anastasia Lubennikova wrote:
>> 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.
>>
>
>
> This looks good and useful. Please add some regression tests.

Done.

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

Attachment Content-Type Size
create_foreign_server_if_not_exists_1.0.patch text/x-patch 5.6 KB
create_user_mapping_if_not_exists_1.0.patch text/x-patch 5.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2017-02-15 17:57:42 Re: Help text for pg_basebackup -R
Previous Message Alvaro Herrera 2017-02-15 17:49:07 Re: Should we cacheline align PGXACT?