- 论坛徽章:
- 71
|
- [postgres@VM sql]$ psql -f ./dblink.sql pgpool
- CREATE EXTENSION
- CREATE TABLE
- INSERT 0 1
- INSERT 0 1
- INSERT 0 1
- INSERT 0 1
- INSERT 0 1
- INSERT 0 1
- INSERT 0 1
- INSERT 0 1
- INSERT 0 1
- INSERT 0 1
- position | colname
- ----------+---------
- 1 | f1
- 2 | f2
- (2 rows)
- dblink_build_sql_insert
- -----------------------------------------------------------
- INSERT INTO foo(f1,f2,f3) VALUES('99','xyz','{a0,b0,c0}')
- (1 row)
- psql:./dblink.sql:25: ERROR: invalid attribute number 4
- dblink_build_sql_update
- ----------------------------------------------------------------------------------------
- UPDATE foo SET f1 = '99', f2 = 'xyz', f3 = '{a0,b0,c0}' WHERE f1 = '99' AND f2 = 'xyz'
- (1 row)
- psql:./dblink.sql:31: ERROR: invalid attribute number 4
- dblink_build_sql_delete
- ---------------------------------------------
- DELETE FROM foo WHERE f1 = '0' AND f2 = 'a'
- (1 row)
- psql:./dblink.sql:36: ERROR: invalid attribute number 4
- CREATE SCHEMA
- CREATE TABLE
- INSERT 0 1
- position | colname
- ----------+---------
- 1 | f1
- 2 | f2
- (2 rows)
- dblink_build_sql_insert
- ------------------------------------------------------------------------
- INSERT INTO "MySchema"."Foo"(f1,f2,f3) VALUES('99','xyz','{a0,b0,c0}')
- (1 row)
- dblink_build_sql_update
- -----------------------------------------------------------------------------------------------------
- UPDATE "MySchema"."Foo" SET f1 = '99', f2 = 'xyz', f3 = '{a0,b0,c0}' WHERE f1 = '99' AND f2 = 'xyz'
- (1 row)
- dblink_build_sql_delete
- ----------------------------------------------------------
- DELETE FROM "MySchema"."Foo" WHERE f1 = '0' AND f2 = 'a'
- (1 row)
- psql:./dblink.sql:61: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:66: ERROR: connection not available
- psql:./dblink.sql:69: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:74: ERROR: connection not available
- psql:./dblink.sql:77: ERROR: connection not available
- psql:./dblink.sql:80: ERROR: connection not available
- psql:./dblink.sql:83: ERROR: connection not available
- psql:./dblink.sql:86: ERROR: connection not available
- psql:./dblink.sql:89: ERROR: connection not available
- psql:./dblink.sql:93: ERROR: connection not available
- psql:./dblink.sql:96: ERROR: connection not available
- psql:./dblink.sql:100: ERROR: connection not available
- psql:./dblink.sql:104: ERROR: connection not available
- psql:./dblink.sql:107: ERROR: connection not available
- psql:./dblink.sql:110: ERROR: connection not available
- psql:./dblink.sql:114: ERROR: connection not available
- psql:./dblink.sql:118: ERROR: connection not available
- psql:./dblink.sql:121: ERROR: connection not available
- psql:./dblink.sql:126: ERROR: connection not available
- psql:./dblink.sql:130: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:133: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:137: ERROR: connection not available
- psql:./dblink.sql:141: ERROR: connection not available
- psql:./dblink.sql:145: ERROR: connection not available
- psql:./dblink.sql:148: ERROR: connection not available
- psql:./dblink.sql:153: ERROR: connection not available
- psql:./dblink.sql:156: ERROR: connection not available
- psql:./dblink.sql:159: ERROR: connection not available
- psql:./dblink.sql:164: ERROR: connection not available
- psql:./dblink.sql:167: ERROR: connection not available
- psql:./dblink.sql:176: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:179: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:184: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:189: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:193: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:196: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:201: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn2" in connection info string
- psql:./dblink.sql:204: ERROR: connection "myconn2" not available
- psql:./dblink.sql:207: ERROR: connection "myconn" not available
- psql:./dblink.sql:210: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:213: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:216: ERROR: connection "myconn" not available
- psql:./dblink.sql:219: ERROR: connection "myconn" not available
- psql:./dblink.sql:222: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:225: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:228: ERROR: connection "myconn" not available
- psql:./dblink.sql:231: ERROR: connection "myconn" not available
- psql:./dblink.sql:234: ERROR: connection "myconn" not available
- psql:./dblink.sql:237: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:240: ERROR: connection "myconn" not available
- psql:./dblink.sql:243: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:246: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:249: ERROR: connection "myconn" not available
- psql:./dblink.sql:253: ERROR: connection "myconn" not available
- psql:./dblink.sql:256: ERROR: connection "myconn" not available
- psql:./dblink.sql:260: ERROR: connection "myconn" not available
- psql:./dblink.sql:264: ERROR: connection "myconn" not available
- psql:./dblink.sql:267: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:271: ERROR: connection "myconn" not available
- psql:./dblink.sql:274: ERROR: connection "myconn" not available
- psql:./dblink.sql:279: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:282: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:286: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:290: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:293: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:298: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:301: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:306: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:309: ERROR: connection "myconn" not available
- psql:./dblink.sql:313: ERROR: connection "myconn" not available
- psql:./dblink.sql:316: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:318: ERROR: connection "dtest1" not available
- psql:./dblink.sql:320: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:322: ERROR: connection "dtest2" not available
- psql:./dblink.sql:324: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:326: ERROR: connection "dtest3" not available
- psql:./dblink.sql:334: ERROR: connection "dtest1" not available
- CREATE FUNCTION
- unnest
- --------
- (0 rows)
- psql:./dblink.sql:345: ERROR: connection "dtest1" not available
- psql:./dblink.sql:347: ERROR: connection "dtest1" not available
- psql:./dblink.sql:348: ERROR: connection "dtest2" not available
- psql:./dblink.sql:349: ERROR: connection "dtest3" not available
- psql:./dblink.sql:351: ERROR: relation "result" does not exist
- LINE 1: SELECT * from result;
- ^
- psql:./dblink.sql:353: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:355: ERROR: connection "dtest1" not available
- psql:./dblink.sql:357: ERROR: connection "dtest1" not available
- psql:./dblink.sql:358: ERROR: connection "dtest1" not available
- psql:./dblink.sql:359: ERROR: connection "dtest1" not available
- CREATE ROLE
- CREATE SERVER
- psql:./dblink.sql:366: ERROR: invalid option "server"
- HINT: Valid options in this context are: user, password
- CREATE USER MAPPING
- GRANT
- GRANT
- You are now connected to database "pgpool" as user "dblink_regression_test".
- psql:./dblink.sql:375: ERROR: password is required
- DETAIL: Non-superusers must provide a password in the connection string.
- psql:./dblink.sql:377: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:378: ERROR: password is required
- DETAIL: Non-superusers must provide a password in the connection string.
- You are now connected to database "pgpool" as user "postgres".
- REVOKE
- REVOKE
- DROP ROLE
- DROP USER MAPPING
- DROP SERVER
- psql:./dblink.sql:388: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:391: ERROR: connection not available
- psql:./dblink.sql:393: ERROR: connection not available
- psql:./dblink.sql:395: ERROR: connection not available
- psql:./dblink.sql:396: ERROR: connection not available
- notify_name | is_self_notify | extra
- -------------+----------------+-------
- (0 rows)
- notify_name | be_pid | extra
- -------------+--------+-------
- (0 rows)
- psql:./dblink.sql:402: ERROR: connection not available
- CREATE TABLE
- INSERT 0 1
- ALTER TABLE
- dblink_build_sql_insert
- ---------------------------------------------------------------------------
- INSERT INTO test_dropped(id,col2b,col3,col4) VALUES('2','113','foo','42')
- (1 row)
- dblink_build_sql_update
- -------------------------------------------------------------------------------------------
- UPDATE test_dropped SET id = '2', col2b = '113', col3 = 'foo', col4 = '42' WHERE id = '2'
- (1 row)
- dblink_build_sql_delete
- -----------------------------------------
- DELETE FROM test_dropped WHERE id = '2'
- (1 row)
- SET
- SET
- SET
- psql:./dblink.sql:434: ERROR: could not establish connection
- DETAIL: FATAL: database "contrib_regression" does not exist
- psql:./dblink.sql:435: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:441: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:449: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:455: ERROR: connection "myconn" not available
- psql:./dblink.sql:459: ERROR: connection "myconn" not available
- psql:./dblink.sql:460: ERROR: relation "result" does not exist
- LINE 1: SELECT * FROM result;
- ^
- psql:./dblink.sql:461: ERROR: table "result" does not exist
- psql:./dblink.sql:468: ERROR: connection "myconn" not available
- psql:./dblink.sql:474: ERROR: connection "myconn" not available
- psql:./dblink.sql:475: ERROR: relation "result" does not exist
- LINE 1: SELECT * FROM result;
- ^
- psql:./dblink.sql:476: ERROR: table "result" does not exist
- psql:./dblink.sql:479: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:483: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- CREATE TABLE
- psql:./dblink.sql:489: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:494: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:496: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- psql:./dblink.sql:501: ERROR: could not establish connection
- DETAIL: missing "=" after "myconn" in connection info string
- t
- ---
- (0 rows)
- DROP TABLE
- psql:./dblink.sql:509: ERROR: connection "myconn" not available
- psql:./dblink.sql:511: ERROR: connection "myconn" not available
- psql:./dblink.sql:513: ERROR: connection "myconn" not available
- DateStyle
- -----------
- ISO, MDY
- (1 row)
- IntervalStyle
- ---------------
- postgres
- (1 row)
- psql:./dblink.sql:521: ERROR: connection "myconn" not available
- RESET
- RESET
- RESET
复制代码 |
|