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

Anastasia Lubennikova <a.lubennikova@postgrespro.ru>

From: Anastasia Lubennikova <a.lubennikova@postgrespro.ru>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2017-01-13T13:36:37Z
Lists: pgsql-hackers

Attachments

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

Commits

  1. Add IF NOT EXISTS for CREATE SERVER and CREATE USER MAPPING