CREATE POLICY IF NOT EXISTS

Started by jian heabout 1 year ago2 messageshackers

Thread notes

1 note#feature#minor#enhancement
hackorum-bot#feature#minor#enhancement
hackorum-bot
1 day ago

@global #feature #minor #enhancement

#feature#minor#enhancement
Jump to latest
#1jian he
jian.universality@gmail.com

hi.

People have complained about the lack of CREATE POLICY IF NOT EXISTS
syntax in [1]/messages/by-id/CWXP265MB500957DD1918490CD4AB439EF7F5A@CWXP265MB5009.GBRP265.PROD.OUTLOOK.COM.
The attached patch adds support for syntax "CREATE POLICY IF NOT EXISTS".

[1]: /messages/by-id/CWXP265MB500957DD1918490CD4AB439EF7F5A@CWXP265MB5009.GBRP265.PROD.OUTLOOK.COM

Attachments:

t52492_1
v1-0001-CREATE-POLICY-IF-NOT-EXISTS.patchtext/x-patch; charset=US-ASCII; name=v1-0001-CREATE-POLICY-IF-NOT-EXISTS.patchDownload+91-31
#2Alvaro Herrera
alvherre@kurilemu.de
In reply to: jian he (#1)
Re: CREATE POLICY IF NOT EXISTS

Hello,

On 2025-Oct-21, jian he wrote:

People have complained about the lack of CREATE POLICY IF NOT EXISTS
syntax in [1].

Hmm, see my reply there just now. I think we've purposefully not added
many additional CREATE IF NOT EXISTS commands.

--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"Sallah, I said NO camels! That's FIVE camels; can't you count?"
(Indiana Jones)