mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Test pipeline_abort was not checking that it got the rows it expected in one mode; make it do so. This doesn't fix the actual problem (no idea what that is, yet) but at least it should make it more obvious rather than being visible only as a difference in the trace output. While at it, fix other infelicities in the test: * I reversed the order of result vs. expected in like(). * The output traces from -t are being put in the log dir, which means the buildfarm script uselessly captures them. Put them in a separate dir tmp_check/traces instead, to avoid cluttering the buildfarm results. * Test pipelined_insert was using too large a row count. Reduce that a tad and add a filler column to make each insert a little bulkier, while still keeping enough that a buffer is filled and we have to switch mode.
66 lines
2.4 KiB
Plaintext
66 lines
2.4 KiB
Plaintext
F 27 Query "SET lc_messages TO "C""
|
|
B 8 CommandComplete "SET"
|
|
B 5 ReadyForQuery I
|
|
F 42 Query "DROP TABLE IF EXISTS pq_pipeline_demo"
|
|
B 123 NoticeResponse S "NOTICE" V "NOTICE" C "00000" M "table "pq_pipeline_demo" does not exist, skipping" F "SSSS" L "SSSS" R "SSSS" \x00
|
|
B 15 CommandComplete "DROP TABLE"
|
|
B 5 ReadyForQuery I
|
|
F 99 Query "CREATE UNLOGGED TABLE pq_pipeline_demo(id serial primary key, itemno integer,int8filler int8);"
|
|
B 17 CommandComplete "CREATE TABLE"
|
|
B 5 ReadyForQuery I
|
|
F 60 Parse "" "INSERT INTO pq_pipeline_demo(itemno) VALUES ($1)" 1 NNNN
|
|
F 19 Bind "" "" 0 1 1 '1' 1 0
|
|
F 6 Describe P ""
|
|
F 9 Execute "" 0
|
|
F 39 Parse "" "SELECT no_such_function($1)" 1 NNNN
|
|
F 19 Bind "" "" 0 1 1 '1' 1 0
|
|
F 6 Describe P ""
|
|
F 9 Execute "" 0
|
|
F 60 Parse "" "INSERT INTO pq_pipeline_demo(itemno) VALUES ($1)" 1 NNNN
|
|
F 19 Bind "" "" 0 1 1 '2' 1 0
|
|
F 6 Describe P ""
|
|
F 9 Execute "" 0
|
|
F 4 Sync
|
|
F 60 Parse "" "INSERT INTO pq_pipeline_demo(itemno) VALUES ($1)" 1 NNNN
|
|
F 19 Bind "" "" 0 1 1 '3' 1 0
|
|
F 6 Describe P ""
|
|
F 9 Execute "" 0
|
|
F 4 Sync
|
|
B 4 ParseComplete
|
|
B 4 BindComplete
|
|
B 4 NoData
|
|
B 15 CommandComplete "INSERT 0 1"
|
|
B 217 ErrorResponse S "ERROR" V "ERROR" C "42883" M "function no_such_function(integer) does not exist" H "No function matches the given name and argument types. You might need to add explicit type casts." P "8" F "SSSS" L "SSSS" R "SSSS" \x00
|
|
B 5 ReadyForQuery I
|
|
B 4 ParseComplete
|
|
B 4 BindComplete
|
|
B 4 NoData
|
|
B 15 CommandComplete "INSERT 0 1"
|
|
B 5 ReadyForQuery I
|
|
F 26 Parse "" "SELECT 1; SELECT 2" 0
|
|
F 12 Bind "" "" 0 0 0
|
|
F 6 Describe P ""
|
|
F 9 Execute "" 0
|
|
F 4 Sync
|
|
B 123 ErrorResponse S "ERROR" V "ERROR" C "42601" M "cannot insert multiple commands into a prepared statement" F "SSSS" L "SSSS" R "SSSS" \x00
|
|
B 5 ReadyForQuery I
|
|
F 54 Parse "" "SELECT 1.0/g FROM generate_series(3, -1, -1) g" 0
|
|
F 12 Bind "" "" 0 0 0
|
|
F 6 Describe P ""
|
|
F 9 Execute "" 0
|
|
F 4 Sync
|
|
B 4 ParseComplete
|
|
B 4 BindComplete
|
|
B 33 RowDescription 1 "?column?" NNNN 0 NNNN 65535 -1 0
|
|
B 32 DataRow 1 22 '0.33333333333333333333'
|
|
B 32 DataRow 1 22 '0.50000000000000000000'
|
|
B 32 DataRow 1 22 '1.00000000000000000000'
|
|
B 70 ErrorResponse S "ERROR" V "ERROR" C "22012" M "division by zero" F "SSSS" L "SSSS" R "SSSS" \x00
|
|
B 5 ReadyForQuery I
|
|
F 40 Query "SELECT itemno FROM pq_pipeline_demo"
|
|
B 31 RowDescription 1 "itemno" NNNN 2 NNNN 4 -1 0
|
|
B 11 DataRow 1 1 '3'
|
|
B 13 CommandComplete "SELECT 1"
|
|
B 5 ReadyForQuery I
|
|
F 4 Terminate
|