postgresql/src/bin/pg_dump
Tom Lane dc47f05b55 Avoid useless malloc/free traffic around getFormattedTypeName().
Coverity complained that one caller of getFormattedTypeName() failed
to free the returned string.  Which is true, but rather than fixing
that one, let's get rid of this tedious and error-prone requirement.
Now that getFormattedTypeName() caches its result, strdup'ing that
result and expecting the caller to free it accomplishes little except
to waste cycles.  We do create a leak in the case where getTypes didn't
make a TypeInfo for the type, but that basically shouldn't ever happen.

Back-patch, as commit 6c450a861 was.  This isn't a particularly
interesting bug fix, but the API change seems like a hazard for
future back-patching activity if we don't back-patch it.
2021-09-08 15:09:43 -04:00
..
po Translation updates 2021-05-10 14:24:16 +02:00
t Solve cross-version-upgrade testing problem induced by 1fb57af92. 2019-02-09 21:02:06 -05:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
common.c Avoid trying to restore table ACLs and per-column ACLs in parallel. 2020-07-11 13:36:51 -04:00
compress_io.c Fix pg_dump's errno checking for zlib I/O 2017-08-02 18:26:58 -04:00
compress_io.h Fix pg_dump's errno checking for zlib I/O 2017-08-02 18:26:58 -04:00
dumputils.c Fix pg_dump for GRANT OPTION among initial privileges. 2021-01-16 12:21:39 -08:00
dumputils.h Further fixes for quoted-list GUC values in pg_dump and ruleutils.c. 2018-07-31 13:00:08 -04:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-07-09 17:23:31 -04:00
nls.mk Translation updates 2018-08-06 19:44:29 +02:00
parallel.c In libpq for Windows, call WSAStartup once and WSACleanup not at all. 2020-10-19 11:23:52 -04:00
parallel.h Fix parallel pg_dump/pg_restore for failure to create worker processes. 2020-01-31 14:41:49 -05:00
pg_backup.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:21 -05:00
pg_backup_archiver.c Work around portability issue with newer versions of mktime(). 2021-06-13 14:32:42 -04:00
pg_backup_archiver.h Fix pg_restore's misdesigned code for detecting archive file format. 2021-04-01 13:34:16 -04:00
pg_backup_custom.c Fix typos in comments. 2017-02-06 11:34:15 +02:00
pg_backup_db.c Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:21 -05:00
pg_backup_db.h Revert "pg_dump: Lock all relations, not just plain tables". 2020-11-06 15:48:21 -05:00
pg_backup_directory.c Ensure write failure reports no-disk-space 2020-06-19 16:46:07 -04:00
pg_backup_null.c Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
pg_backup_tar.c Fix pg_restore's misdesigned code for detecting archive file format. 2021-04-01 13:34:16 -04:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Clean up thread management in parallel pg_dump for Windows. 2016-05-27 12:02:09 -04:00
pg_backup_utils.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_dump.c Avoid useless malloc/free traffic around getFormattedTypeName(). 2021-09-08 15:09:43 -04:00
pg_dump.h Cache the results of format_type() queries in pg_dump. 2021-08-31 13:53:33 -04:00
pg_dump_sort.c Fix pg_dump/pg_restore to restore event triggers later. 2020-03-09 14:58:11 -04:00
pg_dumpall.c Report the true database name on connection errors 2021-01-26 16:42:13 -03:00
pg_restore.c Fix handling of -d "connection string" in pg_dump/pg_restore. 2020-09-24 18:19:39 -04:00