Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFl8k-00FhOj-5M for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Nov 2024 02:17:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tFl8i-002z5u-LN for pgsql-bugs@arkaria.postgresql.org; Tue, 26 Nov 2024 02:17:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFl8i-002z5i-33 for pgsql-bugs@lists.postgresql.org; Tue, 26 Nov 2024 02:17:20 +0000 Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tFl8f-003rqK-HW for pgsql-bugs@lists.postgresql.org; Tue, 26 Nov 2024 02:17:19 +0000 Received: by mail-il1-x130.google.com with SMTP id e9e14a558f8ab-3a777958043so20574725ab.2 for ; Mon, 25 Nov 2024 18:17:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1732587435; x=1733192235; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=AJ3tukxgwGFCe8d82YC72JIA2F2kgbQtssu+CsWhF0E=; b=NouCUaVNqgWM1ozO3GORqLnOEoaB+ndZcOAyNFbm/fEwPb3ylChjkt+7jT23PU3kSt 08ApOztcBWW74LHeNQNbqtZhEje69Xe9gXuyN4kVU5sup9GUzH+QLhPH7UlG5qGKqN0F MzVDJM6H+AYLKgg/MZ4KoX8PW6rclq+BYd/lc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732587435; x=1733192235; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AJ3tukxgwGFCe8d82YC72JIA2F2kgbQtssu+CsWhF0E=; b=hdQ6EV9lMJmTFLzK3OaTJ8YPoAzTe1V6DNCYDHO4Jd/wQJeADMa+AkjmRIj/tHZT1r Wnpys56kiuCIxO9YW4z55zDGhPgObRkBXVIy/qo5GBSP/fLg5OykMO1IjcMKo1cDFRJF n2vpb4QYkrLOw8nYJznW4U+0NB3KUZaSpBr06E/gJM+SnwDI5ou4YGQw5MyL+DNJcP2+ DyAtz0V4sT+/0M8C1MI6UGHnHoD7o/aptiwRh55sw1NEsFvlmiEcqRAClDQDGr8331WA U99s3irZFapkPlm3x9LNUOKxzRUJv3Aeri70vLItIh21N+OCnDW0gF/pXDS1ytKZxwZy 8j5Q== X-Gm-Message-State: AOJu0Yzx/BXgybag/fptXQgZGydPzYxqdaeQgmG30zjcofhBtBQCYMe/ GWau3oaIEy/vD/SwOUDWbecwpC+KC5Cl5UCJJWMbG9Iqr7s3DbMT0vekzDh82eCrtKKS+rqbo6o = X-Gm-Gg: ASbGnctmuLsSDzr7RxlL4eJqgFA6FyRFqPavmrKi3bM9W0yWuy7rY8GkOT037zwI3w0 rJ++RYIH+qTLwoN0Oxi3dMa5iX7vK44d0pVVMnBoGhFr7fbwocYgRZPDsBoOwd1M2RBx1e7JzQE 2bSepsL7Y5PCAjyLRY8dTehLCjwIiXA8W5++8g5sI0sjuLwiLpzaG9j2bvqpQf48YQzBTbwMlZ6 DjEjsTkqmnQpvwT95tanpfZlJJ1ZaxpWpZvClnuH5Dc X-Google-Smtp-Source: AGHT+IGkzT2f11lsLX/46fv2fO+5+ka/+AH5QvAh95VtGdIz9dVjYS27oCAzvq5HYfy3v7DDjF/QXQ== X-Received: by 2002:a05:6e02:18cc:b0:3a7:832e:8c3b with SMTP id e9e14a558f8ab-3a79ad2421emr192785885ab.6.1732587435523; Mon, 25 Nov 2024 18:17:15 -0800 (PST) Received: from google.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fbcc3de278sm6319208a12.68.2024.11.25.18.17.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Nov 2024 18:17:14 -0800 (PST) Date: Mon, 25 Nov 2024 18:17:13 -0800 From: Noah Misch To: "Aya Iwata (Fujitsu)" Cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: 'WARNING: you don't own a lock of type ExclusiveLock' is printed during the GRANT command on PostgreSQL16.5 Message-ID: <20241126021713.71.nmisch@google.com> References: <20241120062742.b0.nmisch@google.com> <20241121011100.c3.nmisch@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Nov 25, 2024 at 05:54:50AM +0000, Aya Iwata (Fujitsu) wrote: > >Did you ever see the WARNING with a DATABASE command, or just with a > >TABLESPACE command? > > We tried this, but there is no WARNING on GRANT xxx ON DATABASE command. > > But I did notice a warning while REVOKE xxx ON TABLESPACE. > > $ psql -x -p 5432 -d postgres -c "REVOKE CREATE ON TABLESPACE test_tbl_spc FROM nmluser1;" > WARNING: you don't own a lock of type ExclusiveLock > REVOKE > > So both GRANT and REVOKE command on TABLESPACE seems to throw an WARNING. That makes sense. I've pushed postgr.es/c/4ba84de for this.