postgresql/src/bin
Robert Haas 4fd1479494 walmethods.c/h: Make Walfile a struct, rather than a void *
This makes the curent file position and pathname visible in a generic
way, so we no longer need current_walfile_name global variable or the
get_current_pos() method. Since that purported to be able to fail but
never actually did, this also lets us get rid of some unnecessary
error-handling code.

One risk of this change is that the get_current_pos() method
previously cleared the error indicator, and that will no longer happen
with the new approach. I looked for a way that this could cause problems
and did not find one.

The previous code was confused about whether "Walfile" was the
implementation-dependent structure representing a WAL file or
whether it was a pointer to that stucture. Some of the code used it
one way, and some in the other. The compiler tolerated that because
void * is interchangeable with void **, but now that Walfile is a
struct, it's necessary to be consistent. Hence, some references to
"Walfile" have been converted to "Walfile *".

Discussion: http://postgr.es/m/CA+TgmoZS0Kw98fOoAcGz8B9iDhdqB4Be4e=vDZaJZ5A-xMYBqA@mail.gmail.com
2022-09-19 11:20:18 -04:00
..
initdb Don't allow creation of database with ICU locale with unsupported encoding 2022-09-16 09:41:33 +02:00
pg_amcheck Fix an assortment of improper usages of string functions 2022-09-06 13:19:44 +12:00
pg_archivecleanup Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_basebackup walmethods.c/h: Make Walfile a struct, rather than a void * 2022-09-19 11:20:18 -04:00
pg_checksums Replace pgwin32_is_junction() with lstat(). 2022-08-06 12:50:59 +12:00
pg_config Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_controldata Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_ctl Use SIGNAL_ARGS consistently to declare signal handlers. 2022-09-14 14:44:50 -04:00
pg_dump Assorted examples of expanded type-safer palloc/pg_malloc API 2022-09-12 08:45:03 +02:00
pg_resetwal Revert ill-considered change in pg_resetwal output. 2022-09-15 10:58:03 -04:00
pg_rewind Clean up inconsistent use of fflush(). 2022-08-29 13:55:41 -04:00
pg_test_fsync Use SIGNAL_ARGS consistently to declare signal handlers. 2022-09-14 14:44:50 -04:00
pg_test_timing Revert "Use wildcards instead of manually-maintained file lists in */nls.mk." 2022-07-13 14:29:10 -04:00
pg_upgrade Revert ill-considered change in pg_resetwal output. 2022-09-15 10:58:03 -04:00
pg_verifybackup Clean up inconsistent use of fflush(). 2022-08-29 13:55:41 -04:00
pg_waldump Use the terminology "WAL file" not "log file" more consistently. 2022-09-14 18:40:58 -04:00
pgbench Add missing serial commas 2022-09-19 06:35:01 -04:00
pgevent Update copyright for 2022 2022-01-07 19:04:57 -05:00
psql Assorted examples of expanded type-safer palloc/pg_malloc API 2022-09-12 08:45:03 +02:00
scripts Fix createdb tests for C locale 2022-09-16 11:10:41 +02:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00