Re: Implement generalized sub routine find_in_log for tap test
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: vignesh C <vignesh21@gmail.com>, Andrew Dunstan <andrew@dunslane.net>, Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-06-06T12:23:40Z
Lists: pgsql-hackers
Attachments
- v1-0001-Add-a-function-in-Cluster.pm-to-generate-WAL (application/octet-stream)
On Tue, Jun 6, 2023 at 4:11 PM Michael Paquier <michael@paquier.xyz> wrote: > > On Tue, Jun 06, 2023 at 10:00:00AM +0530, Bharath Rupireddy wrote: > > +1 for deduplicating find_in_log. How about deduplicating advance_wal > > too so that 019_replslot_limit.pl, 033_replay_tsp_drops.pl, > > 035_standby_logical_decoding.pl and 001_stream_rep.pl can benefit > > immediately? > > As in a small wrapper for pg_switch_wal() that generates N segments at > will? Yes. A simpler way of doing it would be to move advance_wal() in 019_replslot_limit.pl to Cluster.pm, something like the attached. CI members don't complain with it https://github.com/BRupireddy/postgres/tree/add_a_function_in_Cluster.pm_to_generate_WAL. Perhaps, we can name it better instead of advance_wal, say generate_wal or some other? > I don't see why we could not do that if it proves useful in the > long run. Besides the beneficiaries listed above, the test case added by https://commitfest.postgresql.org/43/3663/ can use it. And, the test_table bits in 020_pg_receivewal.pl can use it (?). -- Bharath Rupireddy PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com
Commits
-
Refactor routine to find single log content pattern in TAP tests
- ced4cc30d5de 11.21 landed
- 3509a060d731 12.16 landed
- a9231fedae7a 13.12 landed
- 28af91b4e797 14.9 landed
- e25e5f7fc6b7 15.4 landed
- 392ea0c78fdb 16.0 landed
-
Refactor log check logic for connect_ok/fails in PostgreSQL::Test::Cluster
- 30469a6ed424 14.9 landed
- 7fa7911c7675 15.4 landed
- 26eaf82e7138 16.0 landed