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 1sx55h-007oBh-3o for pgsql-general@arkaria.postgresql.org; Sat, 05 Oct 2024 13:45:01 +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 1sx55d-0000j6-Rw for pgsql-general@arkaria.postgresql.org; Sat, 05 Oct 2024 13:44:57 +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 1sx55d-0000iy-5Y for pgsql-general@lists.postgresql.org; Sat, 05 Oct 2024 13:44:57 +0000 Received: from mta-p7.oit.umn.edu ([134.84.196.207]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sx55Y-002hzj-Hd for pgsql-general@lists.postgresql.org; Sat, 05 Oct 2024 13:44:54 +0000 Received: from localhost (unknown [127.0.0.1]) by mta-p7.oit.umn.edu (Postfix) with ESMTP id 4XLRVR5FLZz9vBs1 for ; Sat, 5 Oct 2024 13:44:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at umn.edu Received: from mta-p7.oit.umn.edu ([127.0.0.1]) by localhost (mta-p7.oit.umn.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LEozHEBzd7uE for ; Sat, 5 Oct 2024 08:44:47 -0500 (CDT) Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mta-p7.oit.umn.edu (Postfix) with ESMTPS id 4XLRVR2fWsz9vBrx for ; Sat, 5 Oct 2024 08:44:46 -0500 (CDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mta-p7.oit.umn.edu 4XLRVR2fWsz9vBrx DKIM-Filter: OpenDKIM Filter v2.11.0 mta-p7.oit.umn.edu 4XLRVR2fWsz9vBrx Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-7e9f83da305so187804a12.2 for ; Sat, 05 Oct 2024 06:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=d.umn.edu; s=google; t=1728135885; x=1728740685; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=egv4/Qg3zUsGxBNCl5fYLtwRbi+tAkJNaaH9n91ihQE=; b=WpJtqbNUEZkGv5DxZiZ+yR4epj0tgWlPHUlJRATvk++cMXKCDgosvWUaBvEfURfP3W vptEm2shfBqBNVpcUbPAEQb7VahSpMuP392Wany4+hf0QdZYzumc2RCzvXSn0OhhYRlh eH7RIZJPoZCtyIeuMQgzCEfnS5vA1wUKBWr9f+XqX50K3waiuC0Ji/N0C4YS4bfEZYrF iQDd96RbzeL/zWwxxBaGlERo+V/MjIc6OVD2S1P/hbtI39QdJMSB4/tjZOK3OacmkDPK c5qUzoA8Nsf0bH+EvYYQYMj6v6DztHff48ALrdkfarqKbtkETPtOGJFNOu1V9xBa1ZkP Z4kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728135885; x=1728740685; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=egv4/Qg3zUsGxBNCl5fYLtwRbi+tAkJNaaH9n91ihQE=; b=YPMzgGjnv5C6449KvtBomor/cAqvHXhss26hmc5btsDW6HG+Grzu3kW3xFzH3VPcaY 4on/lPNn1kVDHeftRzEw0IPpU0t+SsjuUdeT9YFoRkyL27BIRfvGb1rpAhmAYLVqyMEK Nv3bMPjAGhwAZN++kW0MWRI2MbtgYKAdl5FGChQJM5G75R2+TD25TWjazPvjzpSUwKR2 LXUsMqZqp32hFv+UvbzaA+Dc9ES7EwIBW6WUwS9Fpjr22WxrN9r2TxvEzlnVsyEi74gk Zbb9CSad64gHBWxr85rKKAUXsl3niEB3G4ivCf3v8zOwv45pW6Ou/+2M3Xlw2AvL7R3d suaA== X-Gm-Message-State: AOJu0Yw5QLFd2bP3HQ7UtDsALsVu0fH1swP0qSBZFhoJ+pSWH2juTQwA T6z+6/L80EquTp2AwOMxTlIK9r1VZMJRkBQufP59hdg4002A88GsE6Uxp15mr+CujWeYyYoilIF YZFZYi8U67W29RVFNXiIsfsWc5VV+Tj5MT3GDJOy+dMiPYXXPL0RmDoerxlo3uOK4mjIfa9J+Wa rx+HXZPx3Xyf18FERT78WTRaTMMQlDkgLNfht2yF/Yiy7GVs6rlM3H8O3p0A== X-Received: by 2002:a17:90b:1115:b0:2db:60b:eee with SMTP id 98e67ed59e1d1-2e1e63eabeemr3009606a91.9.1728135885234; Sat, 05 Oct 2024 06:44:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGEeDVRPWHgYeIxKbGsBXE2vA2LnBwspWb8ZNM2k31UbSVMwqqGgDZZgVIn4Nqmbns34d86WClVeCwNWKHDATY= X-Received: by 2002:a17:90b:1115:b0:2db:60b:eee with SMTP id 98e67ed59e1d1-2e1e63eabeemr3009602a91.9.1728135884857; Sat, 05 Oct 2024 06:44:44 -0700 (PDT) MIME-Version: 1.0 From: Matt Zagrabelny Date: Sat, 5 Oct 2024 08:44:32 -0500 Message-ID: Subject: grant connect to all databases To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000008a81ff0623bafdf5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008a81ff0623bafdf5 Content-Type: text/plain; charset="UTF-8" Hello, I'd like to have a read-only user for all databases. I found the pg_read_all_data role predefined role, which I granted to my RO user: GRANT pg_read_all_data TO ro_user; ...but I cannot connect to my database(s). I'd like to not have to iterate over all the databases and "GRANT CONNECT...". Is there a way to do this with just one GRANT or equivalent command? Thanks for any help! -m --0000000000008a81ff0623bafdf5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I'd like to have = a read-only user for all databases.

I found the pg= _read_all_data role predefined role, which I granted to my RO user:

GRANT pg_read_all_data TO ro_user;

...but I cannot connect to my database(s).

I= 9;d like to not have to iterate over all the databases and "GRANT CONN= ECT...".

Is there a way to do this with just = one GRANT or equivalent command?

Thanks for any he= lp!

-m
--0000000000008a81ff0623bafdf5--