create database - Docs search results , p.15

38.5. Rules and Privileges

CREATE VIEW phone_number AS SELECT person, CASE WHEN NOT private THEN phone END AS phone FROM phone_data; GRANT SELECT ON phone_number TO assistant; Nobody except that user (and the database

Chapter 23. Routine Database Maintenance Tasks

database administrator's responsibility to set up appropriate scripts, and to check that they execute successfully. One obvious maintenance task is the creation

F.17. file_fdw

CREATE FOREIGN TABLE pglog ( log_time timestamp(3) with time zone, user_name text, database

E.2. Postgres Pro Standard 13.15.1

databases could fail to start within the specified timeout. Reduced logging level during a specified restore point creation

CREATE POLICY

create or change policies for it. While policies will be applied for explicit queries against tables in the database

11.10. Operator Classes and Operator Families

database does not use the standard “ C ” locale. As an example, you might index a varchar column like this: CREATE

REASSIGN OWNED

database objects owned by one or more roles. The REASSIGN OWNED command does not affect any privileges granted to the old_roles on objects that are not owned by them. Likewise, it does not affect

19.5. Password Authentication

database user is stored in the pg_authid system catalog. Passwords can be managed with the SQL commands CREATE

dblink_connect

database session is ended. The connection string may also be the name of an existing foreign server. It is recommended to use the foreign-data wrapper dblink_fdw when defining the foreign server

40.3. Declarations

creates two different ways to name the same object, unrestricted use can be confusing. It's best to use it only for the purpose of overriding predetermined names. 40.3.3. Copying Types variable %TYPE %TYPE provides

49.11. pg_class

database's default tablespace is implied. Not meaningful if the relation has no on-disk file, except for partitioned tables, where this is the tablespace in which partitions will be created

12.1. Introduction

databases for years. Postgres Pro has ~ , ~* , LIKE , and ILIKE operators for textual data types, but they lack many essential properties required by modern information systems: There is no linguistic support, even for English. Regular expressions

49.42. pg_replication_origin

created. For more on replication origins see Chapter 47 . Unlike most system catalogs, pg_replication_origin is shared across all databases

40.12. Tips for Developing in PL/pgSQL

CREATE OR REPLACE FUNCTION testfunc(integer) RETURNS integer AS $$ .... $$ LANGUAGE plpgsql; While running psql , you can load or reload such a function definition file with: \i filename.sql and then immediately issue SQL commands

42.1. PL/Perl Functions and Arguments

CREATE FUNCTION perl_max (integer, integer) RETURNS integer AS $$ if ($_[0] > $_[1]) { return $_[0]; } return $_[1]; $$ LANGUAGE plperl; Note Arguments will be converted from the database