postgresql/src
Andrew Dunstan a2145605ee introduce CopyFormat, refactor CopyFormatOptions
Currently, the COPY command format is determined by two boolean fields
(binary, csv_mode) in CopyFormatOptions.  This approach, while
functional, isn't ideal for implementing other formats in the future.

To simplify adding new formats, introduce a CopyFormat enum.  This makes
the code cleaner and more maintainable, allowing for easier integration
of additional formats down the line.

Author: Joel Jacobson <joel@compiler.org>
Author: jian he <jian.universality@gmail.com>
Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Discussion: https://postgr.es/m/CALvfUkBxTYy5uWPFVwpk_7ii2zgT07t3d-yR_cy4sfrrLU%3Dkcg%40mail.gmail.com
Discussion: https://postgr.es/m/6a04628d-0d53-41d9-9e35-5a8dc302c34c@joeconway.com
2026-03-20 08:21:57 -04:00
..
backend introduce CopyFormat, refactor CopyFormatOptions 2026-03-20 08:21:57 -04:00
bin Add support for EXCEPT TABLE in ALTER PUBLICATION. 2026-03-20 11:36:09 +05:30
common Update Unicode data to Unicode 17.0.0 2026-03-20 08:42:50 +01:00
fe_utils SQL Property Graph Queries (SQL/PGQ) 2026-03-16 10:14:18 +01:00
include introduce CopyFormat, refactor CopyFormatOptions 2026-03-20 08:21:57 -04:00
interfaces Fix -Wstrict-prototypes warning in ecpg_init_sqlca() declaration. 2026-03-18 15:27:49 -04:00
makefiles meson: Add {perl|python}_includespec to generated Makefile.global 2026-03-18 11:09:14 +01:00
pl Reduce header inclusions via execnodes.h 2026-03-16 14:34:57 +01:00
port Check for memset_explicit() and explicit_memset() 2026-03-02 07:51:19 +01:00
template Switch the semaphore API on Solaris to unnamed POSIX. 2026-03-14 14:10:32 -04:00
test Cleanup users and roles in graph_table_rls test 2026-03-20 10:55:51 +01:00
timezone Use fallthrough attribute instead of comment 2026-02-19 08:51:12 +01:00
tools introduce CopyFormat, refactor CopyFormatOptions 2026-03-20 08:21:57 -04:00
tutorial Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Update Unicode data to Unicode 17.0.0 2026-03-20 08:42:50 +01:00
Makefile.shlib Restore AIX support. 2026-02-23 13:34:22 -05:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00