[PATCH] rename column if exists

From: David Oksman <oksman(dot)dav(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] rename column if exists
Date: 2021-03-22 19:40:09
Message-ID: CAB5BD3Y1n9Xo7YMBGROnVfgSpkk-32AJpK9LUQ6Afq00-N_Tew@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Added the ability to specify IF EXISTS when renaming a column of an object
(table, view, etc.).
For example: ALTER TABLE distributors RENAME COLUMN IF EXISTS address TO
city;
If the column does not exist, a notice is issued instead of throwing an
error.

Attachment Content-Type Size
0001-rename-column-if-exists.patch text/x-patch 23.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2021-03-22 19:47:58 Re: [HACKERS] Custom compression methods
Previous Message Andres Freund 2021-03-22 19:33:26 Re: shared-memory based stats collector