aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/common.c
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2013-01-17 11:24:47 +0100
committerMagnus Hagander <magnus@hagander.net>2013-01-17 11:24:47 +0100
commitf3af53441ed0b306692a1cc31003a84d1b5b3cf7 (patch)
treed21b2e0fd1885497eabb8fd294e652cf856b4ad0 /src/bin/pg_dump/common.c
parent36bdfa52a0780d2fcbb48665ab7ca98a13593fdf (diff)
downloadpostgresql-f3af53441ed0b306692a1cc31003a84d1b5b3cf7.tar.gz
postgresql-f3af53441ed0b306692a1cc31003a84d1b5b3cf7.zip
Support multiple -t/--table arguments for more commands
On top of the previous support in pg_dump, add support to specify multiple tables (by using the -t option multiple times) to pg_restore, clsuterdb, reindexdb and vacuumdb. Josh Kupershmidt, reviewed by Karl O. Pinc
Diffstat (limited to 'src/bin/pg_dump/common.c')
-rw-r--r--src/bin/pg_dump/common.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/bin/pg_dump/common.c b/src/bin/pg_dump/common.c
index 99a3fe31f85..706b9a75e3b 100644
--- a/src/bin/pg_dump/common.c
+++ b/src/bin/pg_dump/common.c
@@ -898,24 +898,6 @@ simple_oid_list_append(SimpleOidList *list, Oid val)
list->tail = cell;
}
-void
-simple_string_list_append(SimpleStringList *list, const char *val)
-{
- SimpleStringListCell *cell;
-
- /* this calculation correctly accounts for the null trailing byte */
- cell = (SimpleStringListCell *)
- pg_malloc(sizeof(SimpleStringListCell) + strlen(val));
- cell->next = NULL;
- strcpy(cell->val, val);
-
- if (list->tail)
- list->tail->next = cell;
- else
- list->head = cell;
- list->tail = cell;
-}
-
bool
simple_oid_list_member(SimpleOidList *list, Oid val)
{
@@ -928,16 +910,3 @@ simple_oid_list_member(SimpleOidList *list, Oid val)
}
return false;
}
-
-bool
-simple_string_list_member(SimpleStringList *list, const char *val)
-{
- SimpleStringListCell *cell;
-
- for (cell = list->head; cell; cell = cell->next)
- {
- if (strcmp(cell->val, val) == 0)
- return true;
- }
- return false;
-}