PostgreSQL cluster parameter settings
Is autovacuum enabled for all tables by default?
Yes, AUTOVACUUM is enabled for all tables by default.
Autovacuuming does not run at a specific time. Instead, it runs when a certain value specified in the settings is reached, for example, when the share of updated or deleted table records becomes equal to the Autovacuum vacuum scale factor.
For more information, see this PostgreSQL guide
What are the default values for LC_COLLATE and LC_CTYPE database settings?
The default settings for new databases are LC_CTYPE=C and LC_COLLATE=C. You cannot change these settings for the database created alongside the cluster. However, you can create a new database and specify the required values for it.
Can I change the LC_COLLATE and LC_CTYPE values?
Once a database is created, you cannot change its locale settings. However, you can:
- Create a new database with the required settings.
- Specify the collation locale (
LC_COLLATE) for the database objects:- When calling a function:
SELECT lower(t1 COLLATE "ru_RU.utf8") FROM test; - When creating or altering a table:
CREATE TABLE test (t1 text COLLATE "ru_RU.utf8");
- When calling a function:
Can I change the database owner?
Yes, you can change the owner of an existing database without having to recreate it or lose any data. The database name, cluster FQDN, port, and other connection parameters remain unchanged.
It is possible to change the owner only of the database itself. The owners of objects existing within the database (tables, sequences, views, functions, charts, including public ones) are not automatically reassigned. As a rule, the users on whose behalf an object was created remain its owners. To provide ownership of existing objects to a new user, see this PostgreSQL guide