Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Popular entries9769
createuser --no-bypassrls--no-bypassrls
The new user will not bypass row-level security (RLS) policies. This is the default.createuser › Options
createuser --no-createdb-D--no-createdb
The new user will not be allowed to create databases. This is the default.createuser › Options
createuser --no-createrole-R--no-createrole
The new user will not be allowed to create new roles. This is the default.createuser › Options
createuser --no-inherit-I--no-inherit
The new role will not automatically inherit privileges of roles it is a member of.createuser › Options
createuser --no-login-L--no-login
The new user will not be allowed to log in. (A role without login privilege is still useful as a means of managing database permissions.)createuser › Options
createuser --no-password-w--no-password
Never issue a password prompt. If the server requires password authentication and a password is not available by other means such as a .pgpass file, the connection attempt wi…createuser › Options
createuser --no-replication--no-replication
The new user will not have the REPLICATION privilege, which is described more fully in the documentation for CREATE ROLE. This is the default.createuser › Options
createuser --no-superuser-S--no-superuser
The new user will not be a superuser. This is the default.createuser › Options
createuser --password-W--password
Force createuser to prompt for a password (for connecting to the server, not for the password of the new user). This option is never essential, since createuser will automatical…createuser › Options
createuser --port=port-p port--port=port
Specifies the TCP port or local Unix domain socket file extension on which the server is listening for connections.createuser › Options
createuser --pwprompt-P--pwprompt
If given, createuser will issue a prompt for the password of the new user. This is not necessary if you do not plan on using password authentication.createuser › Options
createuser --replication--replication
The new user will have the REPLICATION privilege, which is described more fully in the documentation for CREATE ROLE.createuser › Options
createuser --role=role-g role--member-of=role--role=role (deprecated)
Specifies the new role should be automatically added as a member of the specified existing role. Multiple existing roles can be specified by w…createuser › Options
createuser --superuser-s--superuser
The new user will be a superuser.createuser › Options
createuser --username=username-U username--username=username
User name to connect as (not the user name to create).createuser › Options
createuser --valid-until=timestamp-v timestamp--valid-until=timestamp
Set a date and time after which the role's password is no longer valid. The default is to set no password expiry date.createuser › Options
createuser --version-V--version
Print the createuser version and exit.createuser › Options
createuser --with-admin=role-a role--with-admin=role
Specifies an existing role that will be automatically added as a member of the new role with admin option, giving it the right to grant membership in the new role to…createuser › Options
createuser --with-member=role-m role--with-member=role
Specifies an existing role that will be automatically added as a member of the new role. Multiple existing roles can be specified by writing multiple -m switches.createuser › Options
Creating a Database22.2. Creating a Database
In order to create a database, the PostgreSQL server must be up and running (see Section 18.3).
Databases are created with the SQL command CREATE DATABASE:
CREATE D…Creating a Database
Creating a Database1.3. Creating a Database
The first test to see whether you can access the database server is to try to create a database. A running PostgreSQL server can manage many databases. Typically, a …Creating a Database
Creating a Database Cluster18.2. Creating a Database Cluster
Before you can do anything, you must initialize a database storage area on disk. We call this a database cluster. (The SQL standard uses the term catalog cl…Creating a Database Cluster
Creating a Large Object33.3.1. Creating a Large Object
The function
Oid lo_create(PGconn *conn, Oid lobjId);
creates a new large object. The OID to be assigned can be specified by lobjId; if so, failure occurs if …Creating a Large Object
Creating a New Table2.3. Creating a New Table
You can create a new table by specifying the table name, along with all column names and their types:
CREATE TABLE weather ( city varchar(80), temp_lo int, -- low t…Creating a New Table
Creating a Schema5.10.1. Creating a Schema
To create a schema, use the CREATE SCHEMA command. Give the schema a name of your choice. For example:
CREATE SCHEMA myschema;
To create or access objects in a sche…Creating a Schema
Creating and Maintaining Message Catalogs56.1.3. Creating and Maintaining Message Catalogs
OK, so how does one create a “blank” message catalog? First, go into the directory that contains the program whose messages you want to tran…Creating and Maintaining Message Catalogs
Creating Certificates18.9.5. Creating Certificates
To create a simple self-signed certificate for the server, valid for 365 days, use the following OpenSSL command, replacing dbhost.yourdomain.com with the serve…Creating Certificates
Creating Custom Scan Paths60.1. Creating Custom Scan Paths
A custom scan provider will typically add paths for a base relation by setting the following hook, which is called after the core code has generated all the …Creating Custom Scan Paths
Creating Custom Scan Plans60.2. Creating Custom Scan Plans
A custom scan is represented in a finished plan tree using the following structure:
typedef struct CustomScan { Scan scan; uint32 flags; List *custom_plans; …Creating Custom Scan Plans
Creating Event Triggers38.1.7. Creating Event Triggers
Event triggers are created using the command CREATE EVENT TRIGGER. In order to create an event trigger, you must first create a function with the special retu…Creating Event Triggers
Creating Indexes12.2.2. Creating Indexes
We can create a GIN index (Section 12.9) to speed up text searches:
CREATE INDEX pgweb_idx ON pgweb USING GIN (to_tsvector('english', body));
Notice that the 2-argum…Creating Indexes
Creating New Collation Objects23.2.2.3. Creating New Collation Objects
If the standard and predefined collations are not sufficient, users can create their own collation objects using the SQL command CREATE COLLATION.
Th…Creating New Collation Objects
Creating XML Values8.13.1. Creating XML Values
To produce a value of type xml from character data, use the function xmlparse:
XMLPARSE ( { DOCUMENT | CONTENT } value)
Examples:
XMLPARSE (DOCUMENT '<?xml versio…Creating XML Values
credcheckcredcheck - postgresql plain text credential checker
credcheck
SecuritySecurity · Extensions
CreditsF.10.6. Credits
Original author: Gene Selkov, Jr. <selkovjr@mcs.anl.gov>, Mathematics and Computer Science Division, Argonne National Laboratory.
My thanks are primarily to Prof. Joe Hellers…Credits
CreditsF.39.6. Credits
Original author: Gene Selkov, Jr. <selkovjr@mcs.anl.gov>, Mathematics and Computer Science Division, Argonne National Laboratory.
My thanks are primarily to Prof. Joe Hellers…Credits
crockfordCrockford Base32 encoded unsigned integer data types
base32 data-type unsigned-integer
pgcrockford
Data typesData types · Extensions
cron_utilsParse cron expressions and compute previous or next trigger times
cron schedule
cron_utils
Time seriesTime series · Extensions
Cross-Version CompatibilityF.38.7. Cross-Version Compatibility
postgres_fdw can be used with remote servers dating back to PostgreSQL 8.3. Read-only capability is available back to 8.1.
A limitation however is that po…Cross-Version Compatibility
crosstabcrosstab ( sql text ) → setof record Produces a “pivot table” containing row names plus N value columns, where N is determined by the row type specified in the calling query.tablefunc — functions that return tables (crosstab and others) › Functions Provided
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open