Connect PSQL to Query Service

PSQL is a command-line interface that comes installed when you install PostgreSQL on your machine. This document covers the steps for connecting PSQL with Adobe Experience Platform Query Service.

NOTE

This guide assumes you already have access to PSQL and are familiar with how to use it. More information about PSQL can be found in the [official PSQL documentation](https://www.postgresql.org/docs/current/app-psql.html.

After installing PSQL on your computer, you are ready to connect PSQL with Query Service. Return to the Platform UI, then select Queries, followed by Credentials.

Image

Select the icon to copy the section labeled PSQL Command, then paste the command string into a terminal or command-line window before pressing enter.

IMPORTANT

If you are on a PC, use a text editor to remove the line breaks in the command string, then copy the string. Additionally, if you are using version 12.0 or greater, you will need to add PGGSSENCMODE=disable to your connection string.

You should see a result like this:

psql (10.5, server 0.1.0)
SSL connection (protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384, bits: 256, compression: off)
Type "help" for help.
all=>

If you don’t see at least version 10.5, then you need to download that version or newer.

Next steps

Now that you’ve connected with Query Service, you can use PSQL to write queries. For more information on how to write and run queries, please read the guide on running queries.

On this page