Re: Surprising connection issue - Mailing list pgsql-general

From David G. Johnston
Subject Re: Surprising connection issue
Date
Msg-id CAKFQuwZ8tsRnJ2ZsBqAy0Cb8diEug0N3LPnQrPGxyTJX20KqaQ@mail.gmail.com
Whole thread Raw
In response to Surprising connection issue  (David Gasa i Castell <dgasacas7@gmail.com>)
List pgsql-general
On Tue, Jul 14, 2020 at 8:25 AM David Gasa i Castell <dgasacas7@gmail.com> wrote:
And my surprise went when I see the connection done while there is no user granted to connect the database...

"""
PostgreSQL grants privileges on some types of objects to PUBLIC by default when the objects are created. No privileges are granted to PUBLIC by default on tables, table columns, sequences, foreign data wrappers, foreign servers, large objects, schemas, or tablespaces. For other types of objects, the default privileges granted to PUBLIC are as follows: 
***CONNECT and TEMPORARY (create temporary tables) privileges for databases;*** (emphasis mine)
 EXECUTE privilege for functions and procedures; and USAGE privilege for languages and data types (including domains).
"""

David J.

pgsql-general by date:

Previous
From: Marc Millas
Date:
Subject: Re: some random() clarification needed
Next
From: Vishwa Kalyankar
Date:
Subject: Re: Same query taking less time in low configuration machine