Skip to content

Commit 7736d0f

Browse files
author
Jonathan S. Katz
committed
Modify how the user connects in the custom config example
As the example uses a PostgreSQL superuser, we can safely use `SET SESSION AUTHORIZATION` and leverage the existing connection to the database, instead of opening up a new one. Issue: [ch6752]
1 parent 73d9629 commit 7736d0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/custom-config/setup.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CREATE SCHEMA IF NOT EXISTS PGHA_USER;
2525

2626
/* The following has been customized for the custom-config example */
2727

28-
\c PGHA_DATABASE PGHA_USER;
28+
SET SESSION AUTHORIZATION PGHA_USER;
2929

3030
CREATE TABLE custom_config_table (
3131
KEY VARCHAR(30) PRIMARY KEY,

0 commit comments

Comments
 (0)