summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-04-15pg_filedump 17.2HEADREL_17_2masterChristoph Berg
* Mask output more wide in tests (@df7cb) * Fix length computation in numeric type (@ GetsuDer) * Support PG18 (@df7cb) * Show GIN block details (@manaldush) * Read toast chunks in ascending order (@df7cb)
2025-04-15Read toast chunks in ascending order, looping if requiredChristoph Berg
Toast chunks might be stored out-of-order in the table. We previously ignored that and hoped for the best, but our toast.sql test actually exhibits the problem on pre-14 servers where the 5th chunk of the last test is small enough to fit into the first disk block. Fix by looping over the table until all chunks have been read. A smarter solution would require either toast index lookups or caching the chunks. Close #20. Author: Christoph Berg <myon@debian.org> Debugging-By: Svetlana Derevyanko <s.derevyanko@postgrespro.ru>
2025-04-15Print toast message only for matching toast chunksChristoph Berg
When dumping toasted values in verbose mode, show "Read TOAST chunk" message only for toast chunks that matched the Oid we are looking for.
2025-04-15Show GIN block detailsMaksim Melnikov
Close #35.
2025-04-15Fix a typo in commentChristoph Berg
2025-04-15Declare fp staticChristoph Berg
It's only used in pg_filedump.c.
2025-04-15Use PRIu64 to format integersChristoph Berg
PG18 gets rid of INT64_MODIFIER, move to standard C version.
2025-04-15Fixed bug with number of digits for numeric being calculated wrong, which ↵Svetlana Derevyanko
led to outputting junk data. Close #32.
2025-04-15Mask all digits of value and toast relation idsChristoph Berg
This was not noticed before because I was always running the tests in a fresh instance. Close #33. Author: Svetlana Derevyanko <s.derevyanko@postgrespro.ru>
2025-04-15Mask full LSN and checksum in testsChristoph Berg
The old LSN masking didn't consider LSNs with a log id with two or more digits. Checksums were hard-coded to 0000 so far, but the server might actually write them. To not clutter the test files with ever-longer sed commands, move the command to a new sed.sh file. Test files updated to follow this change, but there are pre-existing problems on older PG majors and 32-bit that are still open. Close #37. Reported-By: Maksim Melnikov <m.melnikov@postgrespro.ru>
2024-11-07Bump version to 17.1REL_17_1Christoph Berg
While at it, bump copyright year as well.
2024-11-07Makefile: Drop outdated "dist" targetChristoph Berg
2024-10-04Disable fast failing of GitHub actionsChristoph Berg
2024-10-04Set timezone to UTCChristoph Berg
Make us independent from changes to pg_regress' hard-coded Pacific time zone.
2024-10-04Add 17 and 18 to versions to testChristoph Berg
2024-07-19Add/fix expected toast output files for PG13- and 32-bitChristoph Berg
2024-07-18pg_filedump 17.0REL_17_0Christoph Berg
2024-06-07Explicitly link against libpgcommon and libpgportChristoph Berg
libpq_pgport used to pull these in, but does no longer in PG17.
2024-06-07Move "number of chunks" to TOAST messageChristoph Berg
No reason to waste two separate lines on this.
2024-06-07Remove stray newline printed after toast messageChristoph Berg
This would print an ever increasing number of newlines between toast messages.
2024-06-06Add regression test for toastChristoph Berg
2024-06-06Print type of toast when not decoding itChristoph Berg
2024-06-06Allow finding the toast table in current directoryChristoph Berg
get_parent_directory() returns "" when there is no directory part; replace that by ".".
2024-06-06Add .editorconfigChristoph Berg
File copied verbatim from PostgreSQL.
2024-06-06Replace static buffers with mallocChristoph Berg
Since we learned to decode TOASTed values these buffers were too small.
2024-06-04Drop test specific to btree-deduplication on PG12Christoph Berg
Vanilla PG got that feature in PG13 and it's on by default, so the normal test covers it as well.
2024-06-04Run build and test as postgres userChristoph Berg
GH actions run as root by default which initdb doesn't like.
2024-06-04Find pg_filedump at test time in PATHChristoph Berg
Close #21.
2024-06-04Improve Makefile: set PG_CONFIG only if it is not already setKarina Litskevich
2024-06-04Fixes for running tap tests: library for perl tests and option for running ↵Svetlana Derevyanko
as non-priviliged user.
2024-06-04Added TAP tests and parsing specific contents of GIN data pages.Alexey Namakonov
Close #28.
2024-06-04Fixed unaligned use of struct NumericData, which could cause problems on ↵Svetlana Derevyanko
some systems. Close #29.
2023-09-14Add a README.md symlinkREL_16_0Christoph Berg
GitHub doesn't show README.pg_filedump.md by itself.
2023-09-14Bump version to 16.0Christoph Berg
While at it, bump copyright years as well.
2023-09-14Drop Makefile.contrib before it gets outdated even moreChristoph Berg
2023-09-14Convert README file to Markdown formatChristoph Berg
2023-09-14Decode oid/xid >= 2^31 correctlyChristoph Berg
Spotted by alexandervpotapov. Close #18.
2023-09-14Fix expected float output file on 64-bit PG12+Christoph Berg
2023-09-14Support testing against servers compiled without --with-libxml supportChristoph Berg
See #9.
2023-09-14Support testing float with PG 11 and earlierChristoph Berg
See #9.
2023-09-14Support testing numeric with PG 13 and 14Christoph Berg
Close #9.
2023-09-14Add PG 16 to GitHub actionChristoph Berg
2023-09-14Add support for PostgreSQL v16Karina Litskevich
2023-09-14Add missing flagsKarina Litskevich
2023-09-14Fix comparison of hasho_flag field and LH_UNUSED_PAGEKarina Litskevich
2023-08-28Bugfix: make sure fclose is called with a legal argumentKarina Litskevich
fclose(NULL) is an UB
2023-08-28Bugfix: free dynamically allocated memoryKarina Litskevich
2022-03-30Bump copyright yearREL_14_1Christoph Berg
2022-03-30Add a non-trivial timetz offset test caseChristoph Berg
2022-03-30Decode timestamptzChristoph Berg
We unconditionally use +00 on output.