Add IF NOT EXISTS for CREATE SERVER and CREATE USER MAPPING
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 20 Mar 2017 20:40:45 +0000 (16:40 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 20 Mar 2017 20:40:45 +0000 (16:40 -0400)
commitb6fb534f10e1dea17dc5641f44cc651b8d60d8f0
treec75641e64d697bbe3845fcfc303998ad82723956
parent839cb0649a9f595a8534cdf14afbe89efb1757b1
Add IF NOT EXISTS for CREATE SERVER and CREATE USER MAPPING

There is still some inconsistency with the error messages surrounding
foreign servers. Some use the word "foreign" and some don't. My
inclination is to remove all such uses of "foreign" on the basis that
the  CREATE/ALTER/DROP SERVER commands don't use the word. However, that
is left for another day. In this patch I have kept to the existing usage
in the affected commands, which omits "foreign".

Anastasia Lubennikova, reviewed by Arthur Zakirov and Ashtosh Bapat.

Discussion: http://postgr.es/m/7c2ab9b8-388a-1ce0-23a3-7acf2a0ed3c6@postgrespro.ru
doc/src/sgml/ref/create_server.sgml
doc/src/sgml/ref/create_user_mapping.sgml
src/backend/commands/foreigncmds.c
src/backend/parser/gram.y
src/include/nodes/parsenodes.h
src/test/regress/expected/foreign_data.out
src/test/regress/sql/foreign_data.sql