Why need a lock?

From: jacktby jacktby <jacktby(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Why need a lock?
Date: 2023-09-25 15:04:18
Message-ID: 8687F927-65A1-441F-8DCE-0D3AFF8A59F1@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2023-09-25 15:06:58 Re: Regression in COPY FROM caused by 9f8377f7a2
Previous Message jian he 2023-09-25 14:55:01 Re: [PATCH] Extend ALTER OPERATOR to support adding commutator, negator, hashes, and merges