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 1rk8De-00AZPE-RZ for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Mar 2024 19:55:27 +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 1rk8Dd-001ZBu-9A for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Mar 2024 19:55:25 +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 1rk8Dc-001ZBe-Pu for pgsql-bugs@lists.postgresql.org; Tue, 12 Mar 2024 19:55:25 +0000 Received: from mail-yw1-x1129.google.com ([2607:f8b0:4864:20::1129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rk8Da-004AXY-Ce for pgsql-bugs@lists.postgresql.org; Tue, 12 Mar 2024 19:55:24 +0000 Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-60a3c48e70fso26196977b3.1 for ; Tue, 12 Mar 2024 12:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1710273320; x=1710878120; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:from:date:from:to:cc:subject:date:message-id :reply-to; bh=VDJCmzaUxPS3+mO4Zubnj2iFUXaQcdoD8ySU1MMpyyM=; b=gk21AKeSd4qo8fbEecA+4HkEu/eLL5IuldPtOli/uZRuOuI88ZqErs4bGYE/P0EGSc gLqu7Y2sWVWtQROFl2mf3a0qIqqPU7rzrienTQ4Yl1QZC9Mwft0oOE0qHNrtcmUaCEjx 7c80O0GxDfvIEZvnjEnUR4nfZqMP6ggobeVCA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710273320; x=1710878120; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VDJCmzaUxPS3+mO4Zubnj2iFUXaQcdoD8ySU1MMpyyM=; b=LdJQbh/wQOGR8YrIOAfTb5I38K7FG6KisXBZXJjK6Wz3ZFhsQjpaEnY3OoVk8xZqKR +zwZeXiCC5LwjmWjADk2fM2ErQEhmbPZ99NHVPQvAodjMVgI77B2VtCcncHZrfKEXKFi xogvf7Eg22uvB8LJ+0Zu5WMj6Dli/ypnQE1QGSvChTuy50VpO0xDUhyuP86KD96fnzPQ nh3fIc+NPBjcMDNPVcSvlafP/a23roGyMKTCqNiv91+pQSNjY8GP9C9nFdUmYmssDdK/ gxjIc261i747MvXudpyB0u3TQiyIFFadDh/q1/rUQ5KenCdZ8d7CAL6WlnJQDvtNgCm8 uidw== X-Forwarded-Encrypted: i=1; AJvYcCVS93KPWdHXq8n85pmZ+RH93yLtjqsbOHTgEd8U9+9F4gQuyVZZrEInf6yIQj/RxmI44BmTzMnWmQaDRP3mZhW8u7qQqYHHm8n+e0kqSDRt X-Gm-Message-State: AOJu0YxeSwVnBpkHir5AcEcVZf+rZn4iwUSby4QE20O+6FiKWUSEzbKK vFNdn5GhXIk/l0lpupO/nI6DTTDjyJv3AT3Edv8MmNKnlmJmqpSnKAn5b7FLKw== X-Google-Smtp-Source: AGHT+IF7ZQXKJdC+TaVSFS8paVUyJGs1qKapqmFcgJzpbYqDQbYDEXtzs/ANX4DByGLKp51eSvPJmQ== X-Received: by 2002:a81:770a:0:b0:60a:1b1:5f61 with SMTP id s10-20020a81770a000000b0060a01b15f61mr502684ywc.35.1710273320437; Tue, 12 Mar 2024 12:55:20 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id s6-20020a81e506000000b0060a606b45b0sm325090ywl.138.2024.03.12.12.55.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Mar 2024 12:55:20 -0700 (PDT) Date: Tue, 12 Mar 2024 12:55:17 -0700 From: Noah Misch To: m.kristo@rewe-group.at, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18389: pg_database_owner not recognized with alter default privileges Message-ID: <20240312195517.23@rfd.leadboat.com> References: <18389-8ad7f569523f579b@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18389-8ad7f569523f579b@postgresql.org> 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 Tue, Mar 12, 2024 at 07:04:11PM +0000, PG Bug reporting form wrote: > Bug reference: 18389 > Logged by: Marijo Kristo > Email address: m.kristo@rewe-group.at > PostgreSQL version: 16.2 > Operating system: Debian > Description: > > Hello, > > i am precreating schemas in template1 database and setting specific > privileges. > When performing "alter default privileges for role pg_database_owner ..." > the group is recognized and the default privilege is also set. No error is > thrown. > > When i create a new database the pg_database_owner role is not working > correctly. I created then the same privilege with specifying the db owner > and then the privilege works. Please share the exact SQL commands you used to reproduce this.