Re: [PATCH] Fix escaping for '\' and '"' in pageinspect for gist

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kirill Reshke <reshkekirill@gmail.com>
Cc: Roman Khapov <rkhapov@yandex-team.ru>, pgsql-hackers@lists.postgresql.org, michael@paquier.xyz
Date: 2025-12-29T19:24:49Z
Lists: pgsql-hackers
Kirill Reshke <reshkekirill@gmail.com> writes:
> Should we then refactor code to avoid copying? I copied this code in
> [0] for the third time, so if this has a chance to be committed, there
> will be 3 times copied code...

Might not be a bad idea, but of course the devil is in the details.
What did you have in mind?  Split out a function to quote one
field value per record_out's rules?

			regards, tom lane