Re: Mention FK creation take ShareRowExclusiveLock on referenced table

2018-09-21 Thread Adrien NAYRAT
On 9/21/18 8:13 AM, Michael Paquier wrote: On Thu, Sep 20, 2018 at 08:23:45AM +0200, Adrien Nayrat wrote: Yes, here is the patch. Thanks Adrien. I have reworded a bit the thing, fixed a typo, and pushed down to v11 where this applied without conflicts. thanks! As it could happen even on

Re: Mention FK creation take ShareRowExclusiveLock on referenced table

2018-09-19 Thread Adrien Nayrat
On 9/19/18 4:53 AM, Michael Paquier wrote: > On Tue, Sep 18, 2018 at 12:32:54PM +0200, Adrien NAYRAT wrote: >> A few days ago I was surprised a CREATE TABLE containing FK constraint was >> stuck due to an automatic vacuum freeze (which took ShareUpdateExclusiveLock >> if I re

Mention FK creation take ShareRowExclusiveLock on referenced table

2018-09-18 Thread Adrien NAYRAT
Hello, A few days ago I was surprised a CREATE TABLE containing FK constraint was stuck due to an automatic vacuum freeze (which took ShareUpdateExclusiveLock if I remember) on referenced table. After digging into the code I found theses lines in tablecmds.c : /* * Grab ShareRowExclusiveLo

Text operators "~<=~ ~<~ ~>=~ ~>~" not documented

2018-02-08 Thread Adrien Nayrat
~>=~ 'test'::text) AND (location ~<~ 'tesu'::text)) Filter: (location ~~ 'test%'::text) (3 lignes) Should we add them on this page? https://www.postgresql.org/docs/devel/static/functions-string.html Thanks! 1: https://www.postgresql.org/docs/current/stat