Content-Length: 260893 | pFad | http://github.com/postgrespro/postgres/commit/0db343dc13bc8657976c39ddbf7e0c7db8b2efff

17 Fix overly-lax regex pattern in TAP test of READ_REPLICATION_SLOT · postgrespro/postgres@0db343d · GitHub
Skip to content

Commit 0db343d

Browse files
committed
Fix overly-lax regex pattern in TAP test of READ_REPLICATION_SLOT
The case checking for a NULL output when a slot does not exist was too lax, as it was passing for any output generated by the query. This fixes the matching pattern to be what it should be, matching only on "||". Oversight in b4ada4e.
1 parent f61e1dd commit 0db343d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/recovery/t/001_stream_rep.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ sub test_target_session_attrs
263263
'READ_REPLICATION_SLOT non_existent_slot;',
264264
extra_params => [ '-d', $connstr_rep ]);
265265
ok($ret == 0, "READ_REPLICATION_SLOT exit code 0 on success");
266-
like($stdout, qr/^||$/,
266+
like($stdout, qr/^\|\|$/,
267267
"READ_REPLICATION_SLOT returns NULL values if slot does not exist");
268268

269269
$node_primary->psql(

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/0db343dc13bc8657976c39ddbf7e0c7db8b2efff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy