pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
hstore-new - hstore-new: deal with strictness/null issues.
2+ messages / 2 participants
[nested] [flat]

* hstore-new - hstore-new: deal with strictness/null issues.
@ 2009-06-20 23:17  User Andrewsn <andrewsn@pgfoundry.org>
  0 siblings, 0 replies; 2+ messages in thread

From: andrewsn@pgfoundry.org @ 2009-06-20 23:17 UTC (permalink / raw)
  To: pgsql-committers

Log Message:
-----------
deal with strictness/null issues. support nulls when creating from
records and arrays (both useful and consistent with the => operator).
regression tests for null handling.

Modified Files:
--------------
    hstore-new:
        hstore-new.sql.in (r1.2 -> r1.3)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/hstore-new.sql.in?r1=1.2&r2=1....)
        hstore_io.c (r1.3 -> r1.4)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/hstore_io.c?r1=1.3&r2=1.4)
    hstore-new/expected:
        hstore.out (r1.1.1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/expected/hstore.out?r1=1.1.1.1&...)
    hstore-new/sql:
        hstore.sql (r1.1.1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/hstore-new/hstore-new/sql/hstore.sql?r1=1.1.1.1&r2=1...)




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Add regression test for restart points during promotion
@ 2024-03-04 00:50  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2024-03-04 00:50 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add regression test for restart points during promotion

This test serves as a way to demonstrate how to use the features
introduced in 37b369dc67bc, while providing coverage for 7863ee4def65
that caused the startup process to throw "PANIC: could not locate a
valid checkpoint record" when starting recovery.  The test checks that a
node is able to properly restart following a crash when a restart point
was finishing across a promotion, with an injection point added in the
middle of CreateRestartPoint() to stop the restartpoint in flight.  Note
that this test fails when 7863ee4def65 is reverted.

Kyotaro Horiguchi is the original author of this test, that has been
originally posted on the thread where 7863ee4def65 was discussed.  I
have just upgraded and polished it to rely on injection points, making
it much cheaper to reproduce the failure.

This test requires injection points to be enabled in the builds, hence
meson and ./configure need an update to pass this knowledge down to the
test.  The name of the new injection point follows the same naming
convention as 6a1ea02c491d.  The Makefile's EXTRA_INSTALL of recovery
TAP tests is updated to include modules/injection_points.

Author: Kyotaro Horiguchi, Michael Paquier
Reviewed-by: Andrey Borodin, Bertrand Drouvot
Discussion: https://postgr.es/m/ZdLuxBk5hGpol91B@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6782709df81f6c68450172605907fa9ff2b7f2b1

Modified Files
--------------
src/backend/access/transam/xlog.c                |   7 +
src/test/recovery/Makefile                       |   7 +-
src/test/recovery/meson.build                    |   4 +
src/test/recovery/t/041_checkpoint_at_promote.pl | 170 +++++++++++++++++++++++
4 files changed, 187 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-03-04 00:50 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-06-20 23:17 hstore-new - hstore-new: deal with strictness/null issues. User Andrewsn <andrewsn@pgfoundry.org>
2024-03-04 00:50 pgsql: Add regression test for restart points during promotion Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox