Re: number and type of locks for an alter sequence

2019-01-28 Thread Adrian Klaver
On 1/28/19 6:07 AM, Thomas Poty wrote: Hello , In PG10, when I am altering a sequence, i see 2 locks in pg_locks matching my sequence: a RowExclusiveLock and a ShareRowExclusiveLock My question is Why 2 locks? Someone on irc said it was for catalog but i am no sure because pg_locks.relationi

number and type of locks for an alter sequence

2019-01-28 Thread Thomas Poty
Hello , In PG10, when I am altering a sequence, i see 2 locks in pg_locks matching my sequence: a RowExclusiveLock and a ShareRowExclusiveLock My question is Why 2 locks? Someone on irc said it was for catalog but i am no sure because pg_locks.relationid is the same for the 2 locks. At the same