diff options
| author | Tom Lane | 2013-10-22 23:40:26 +0000 |
|---|---|---|
| committer | Tom Lane | 2013-10-22 23:40:26 +0000 |
| commit | 2c66f9924c1162bfba27c77004ccf42fb6ea188d (patch) | |
| tree | 920c20776ef6d13d7a5d3a836202d897abcaf428 /contrib/oid2name | |
| parent | 09a89cb5fc29b47c26d151e82293fd3bef592b7b (diff) | |
Replace pg_asprintf() with psprintf().
This eliminates an awkward coding pattern that's also unnecessarily
inconsistent with backend coding. psprintf() is now the thing to
use everywhere.
Diffstat (limited to 'contrib/oid2name')
| -rw-r--r-- | contrib/oid2name/oid2name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c index ab92c637e5..67d79346b2 100644 --- a/contrib/oid2name/oid2name.c +++ b/contrib/oid2name/oid2name.c @@ -508,7 +508,7 @@ sql_exec_searchtables(PGconn *conn, struct options * opts) free(comma_filenodes); /* now build the query */ - pg_asprintf(&todo, + todo = psprintf( "SELECT pg_catalog.pg_relation_filenode(c.oid) as \"Filenode\", relname as \"Table Name\" %s\n" "FROM pg_catalog.pg_class c \n" " LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace \n" |
