PostgreSQL Connector

    To configure the PostgreSQL connector, create a catalog properties file in named, for example, postgresql.properties, to mount the PostgreSQL connector as the postgresql catalog. Create the file with the following contents, replacing the connection properties as appropriate for your setup:

    The PostgreSQL connector can only access a single database within a PostgreSQL server. Thus, if you have multiple PostgreSQL databases, or want to connect to multiple PostgreSQL servers, you must configure multiple instances of the PostgreSQL connector.

    To add another catalog, simply add another properties file to etc/catalog with a different name (making sure it ends in .properties). For example, if you name the property file , Presto will create a catalog named sales using the configured connector.

    The PostgreSQL connector provides a schema for every PostgreSQL schema. You can see the available PostgreSQL schemas by running SHOW SCHEMAS:

    If you have a PostgreSQL schema named web, you can view the tables in this schema by running SHOW TABLES:

    Finally, you can access the clicks table in the web schema:

    If you used a different name for your catalog properties file, use that catalog name instead of postgresql in the above examples.

    The following SQL statements are not yet supported: