Re: More CppAsString2() in psql's describe.c

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: Michael Paquier <michael@paquier.xyz>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-12-02T07:45:11Z
Lists: pgsql-hackers
> On 2 Dec 2024, at 08:37, Peter Eisentraut <peter@eisentraut.org> wrote:

> the current structure assumes that the C character literal syntax used by the PROKIND_* and other symbols happens to be the same as the SQL string literal syntax required in those queries, which is just an accident.)

I'm not sure I would call it an accident, rather there is no guarantee that it
will always be true.

--
Daniel Gustafsson




Commits

  1. psql: Sprinkle more CppAsString2() in describe.c