Why need a lock? - Mailing list pgsql-hackers

From jacktby jacktby
Subject Why need a lock?
Date
Msg-id 8687F927-65A1-441F-8DCE-0D3AFF8A59F1@gmail.com
Whole thread Raw
Responses Re: Why need a lock?
List pgsql-hackers
I find this in source code
#define ShareLock                5    /* CREATE INDEX (WITHOUT CONCURRENTLY) */
I think if there is no CONCURRENTLY, so why we need a lock, I think that’s unnecessary. What’s the point?


pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: [PATCH] Extend ALTER OPERATOR to support adding commutator, negator, hashes, and merges
Next
From: Andrew Dunstan
Date:
Subject: Re: Regression in COPY FROM caused by 9f8377f7a2