diff options
| author | Bruce Momjian | 2001-03-22 06:16:21 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2001-03-22 06:16:21 +0000 |
| commit | 0686d49da0a34ad92f61f791ea1039dec5d20f41 (patch) | |
| tree | 11c8f58fb4364f5904c3cbad5c7a28ccea5d4049 /contrib | |
| parent | 9e1552607a9dc6bc23e43d46770a9063ade4f3f0 (diff) | |
Remove dashes in comments that don't need them, rewrap with pgindent.
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/pg_dumplo/lo_export.c | 11 | ||||
| -rw-r--r-- | contrib/pg_dumplo/lo_import.c | 8 | ||||
| -rw-r--r-- | contrib/pg_dumplo/main.c | 14 |
3 files changed, 12 insertions, 21 deletions
diff --git a/contrib/pg_dumplo/lo_export.c b/contrib/pg_dumplo/lo_export.c index 6a62c88bc6f..ef625497911 100644 --- a/contrib/pg_dumplo/lo_export.c +++ b/contrib/pg_dumplo/lo_export.c @@ -1,7 +1,7 @@ /* ------------------------------------------------------------------------- * pg_dumplo * - * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/lo_export.c,v 1.6 2001/03/22 03:59:10 momjian Exp $ + * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/lo_export.c,v 1.7 2001/03/22 06:16:06 momjian Exp $ * * Karel Zak 1999-2000 * ------------------------------------------------------------------------- @@ -32,7 +32,7 @@ load_lolist(LODumpMaster * pgLO) int i; int n; - /* ---------- + /* * Now find any candidate tables who have columns of type oid. * * NOTE: System tables including pg_largeobject will be ignored. @@ -40,7 +40,6 @@ load_lolist(LODumpMaster * pgLO) * * NOTE: the system oid column is ignored, as it has attnum < 1. * This shouldn't matter for correctness, but it saves time. - * ---------- */ pgLO->res = PQexec(pgLO->conn, "SELECT c.relname, a.attname " @@ -109,9 +108,8 @@ pglo_export(LODumpMaster * pgLO) for (ll = pgLO->lolist; ll->lo_table != NULL; ll++) { - /* ---------- + /* * Query: find the LOs referenced by this column - * ---------- */ sprintf(Qbuff, "SELECT DISTINCT l.loid FROM \"%s\" x, pg_largeobject l WHERE x.\"%s\" = l.loid", ll->lo_table, ll->lo_attr); @@ -137,9 +135,8 @@ pglo_export(LODumpMaster * pgLO) int t; char *val; - /* ---------- + /* * Create DIR/FILE - * ---------- */ if (pgLO->action != ACTION_SHOW) { diff --git a/contrib/pg_dumplo/lo_import.c b/contrib/pg_dumplo/lo_import.c index ff8929d6d6e..a75e905be1e 100644 --- a/contrib/pg_dumplo/lo_import.c +++ b/contrib/pg_dumplo/lo_import.c @@ -1,7 +1,7 @@ /* ------------------------------------------------------------------------- * pg_dumplo * - * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/lo_import.c,v 1.4 2001/03/22 03:59:10 momjian Exp $ + * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/lo_import.c,v 1.5 2001/03/22 06:16:06 momjian Exp $ * * Karel Zak 1999-2000 * ------------------------------------------------------------------------- @@ -50,9 +50,8 @@ pglo_import(LODumpMaster * pgLO) sprintf(lo_path, "%s/%s", pgLO->space, path); - /* ---------- + /* * Import LO - * ---------- */ if ((new_oid = lo_import(pgLO->conn, lo_path)) == 0) { @@ -79,9 +78,8 @@ pglo_import(LODumpMaster * pgLO) pgLO->counter++; - /* ---------- + /* * UPDATE oid in tab - * ---------- */ sprintf(Qbuff, "UPDATE \"%s\" SET \"%s\"=%u WHERE \"%s\"=%u", loa.lo_table, loa.lo_attr, new_oid, loa.lo_attr, loa.lo_oid); diff --git a/contrib/pg_dumplo/main.c b/contrib/pg_dumplo/main.c index 3878aeca027..211753b6059 100644 --- a/contrib/pg_dumplo/main.c +++ b/contrib/pg_dumplo/main.c @@ -1,7 +1,7 @@ /* ------------------------------------------------------------------------- * pg_dumplo * - * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/main.c,v 1.7 2001/03/22 03:59:10 momjian Exp $ + * $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/main.c,v 1.8 2001/03/22 06:16:06 momjian Exp $ * * Karel Zak 1999-2000 * ------------------------------------------------------------------------- @@ -65,9 +65,8 @@ main(int argc, char **argv) progname = argv[0]; - /* ---------- + /* * Parse ARGV - * ---------- */ if (argc > 1) { @@ -153,9 +152,8 @@ main(int argc, char **argv) exit(RE_ERROR); } - /* ---------- + /* * Check space - * ---------- */ if (!pgLO->space && !pgLO->action == ACTION_SHOW) { @@ -172,9 +170,8 @@ main(int argc, char **argv) exit(RE_ERROR); } - /* ---------- + /* * Make connection - * ---------- */ pgLO->conn = PQsetdbLogin(pgLO->host, NULL, NULL, NULL, pgLO->db, pgLO->user, pwd); @@ -189,9 +186,8 @@ main(int argc, char **argv) pgLO->user = PQuser(pgLO->conn); - /* ---------- + /* * Init index file - * ---------- */ if (pgLO->action != ACTION_SHOW) index_file(pgLO); |
