postgresql/src/bin
Tom Lane a0ef081720 In psql's \d commands, don't truncate attribute default values.
Historically, psql has truncated the text of a column's default
expression at 128 characters.  This is unlike any other behavior
in describe.c, and it's become particularly confusing now that
the limit is only applied to the expression proper and not to
the "generated always as (...) stored" text that may get wrapped
around it.

Excavation in our git history suggests that the original motivation
for this limit was not really to limit the display width (as I'd long
supposed), but to make it safe to use a fixed-width output buffer to
store the result.  That implementation restriction is long gone of
course, but the limit remained.  Let's just get rid of it.

While here, rearrange the logic about when to free the output string
so that it's not so dependent on unstated assumptions about the
possible values of attidentity and attgenerated.

Per bug #16743 from David Turon.  Back-patch to v12 where GENERATED
came in.  (Arguably we could take it back further, but I'm hesitant
to change the behavior of long-stable branches for this.)

Discussion: https://postgr.es/m/16743-7b1bacc4af76e7ad@postgresql.org
2020-11-25 16:19:25 -05:00
..
initdb Translation updates 2020-11-09 12:34:05 +01:00
pg_archivecleanup Translation updates 2020-11-09 12:34:05 +01:00
pg_basebackup Translation updates 2020-11-09 12:34:05 +01:00
pg_checksums Translation updates 2020-11-09 12:34:05 +01:00
pg_config Translation updates 2020-11-09 12:34:05 +01:00
pg_controldata Translation updates 2020-11-09 12:34:05 +01:00
pg_ctl Translation updates 2020-11-09 12:34:05 +01:00
pg_dump Translation updates 2020-11-09 12:34:05 +01:00
pg_resetwal Translation updates 2020-11-09 12:34:05 +01:00
pg_rewind Translation updates 2020-11-09 12:34:05 +01:00
pg_test_fsync Translation updates 2020-11-09 12:34:05 +01:00
pg_test_timing Translation updates 2020-11-09 12:34:05 +01:00
pg_upgrade Translation updates 2020-11-09 12:34:05 +01:00
pg_verifybackup Translation updates 2020-11-09 12:34:05 +01:00
pg_waldump Translation updates 2020-11-09 12:34:05 +01:00
pgbench Message fixes and style improvements 2020-09-14 06:42:07 +02:00
pgevent Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
psql In psql's \d commands, don't truncate attribute default values. 2020-11-25 16:19:25 -05:00
scripts Translation updates 2020-11-09 12:34:05 +01:00
Makefile Rename pg_validatebackup to pg_verifybackup. 2020-04-12 11:26:05 -04:00