Add missing comma

error_2_on_name
Onder Kalaci 2022-01-26 18:22:01 +01:00
parent 3c067cca2a
commit 5cc6dad61d
1 changed files with 4 additions and 4 deletions

View File

@ -3,12 +3,12 @@ CREATE SCHEMA mx_app_name;
CREATE TABLE output (line text);
-- a hack to run command with another user
\COPY output FROM PROGRAM 'PGAPPNAME=mx_app_name psql -c "CREATE TABLE dist_1(a int)" -h localhost -p 57636 -U postgres -d regression'
\COPY output FROM PROGRAM 'PGAPPNAME=mx_app_name psql -c "SELECT create_distributed_table(''dist_1'', ''a'');" -h localhost -p 57636 -U postgres -d regression'
\COPY output FROM PROGRAM 'export PGAPPNAME=mx_app_name psql -c "CREATE TABLE dist_1(a int)" -h localhost -p 57636 -U postgres -d regression'
\COPY output FROM PROGRAM 'export PGAPPNAME=mx_app_name psql -c "show application_name;" -h localhost -p 57636 -U postgres -d regression'
SELECT * FROM output;
-- ensure the command executed fine
SELECT count(*) FROM pg_dist_partition WHERE logicalrelid = 'dist_1'::regclass;
\COPY output FROM PROGRAM 'PGAPPNAME=mx_app_name psql -c "DROP TABLE dist_1;" -h localhost -p 57636 -U postgres -d regression'
\COPY output FROM PROGRAM 'export PGAPPNAME=mx_app_name psql -c "DROP TABLE dist_1;" -h localhost -p 57636 -U postgres -d regression'
DROP SCHEMA mx_app_name CASCADE;