File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 5
5
*
6
6
* Copyright (c) 1994, Regents of the University of California
7
7
*
8
- * $Id: pg_dump.h,v 1.15 1997/06/02 02:52:06 scrappy Exp $
8
+ * $Id: pg_dump.h,v 1.16 1997/06/21 16:08:15 momjian Exp $
9
9
*
10
10
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
11
11
*
@@ -38,6 +38,7 @@ typedef struct _typeInfo {
38
38
char * typdelim ;
39
39
char * typdefault ;
40
40
char * typrelid ;
41
+ char * usename ;
41
42
int passedbyvalue ;
42
43
int isArray ;
43
44
} TypeInfo ;
@@ -53,6 +54,7 @@ typedef struct _funcInfo {
53
54
int retset ; /* 1 if the function returns a set, 0 otherwise */
54
55
char * prosrc ;
55
56
char * probin ;
57
+ char * usename ;
56
58
int dumped ; /* 1 if already dumped */
57
59
} FuncInfo ;
58
60
@@ -78,6 +80,7 @@ typedef struct _tableInfo {
78
80
not have the same order of attributes as
79
81
the POSTQUEL tables */
80
82
int * attlen ; /* attribute lengths */
83
+ char * usename ;
81
84
82
85
} TableInfo ;
83
86
@@ -108,6 +111,7 @@ typedef struct _aggInfo {
108
111
char * aggtranstype2 ;
109
112
char * agginitval1 ;
110
113
char * agginitval2 ;
114
+ char * usename ;
111
115
} AggInfo ;
112
116
113
117
typedef struct _oprInfo {
@@ -126,6 +130,7 @@ typedef struct _oprInfo {
126
130
char * oprcanhash ; /* can we use hash join strategy ? */
127
131
char * oprlsortop ; /* oid's of the left and right sort operators */
128
132
char * oprrsortop ;
133
+ char * usename ;
129
134
} OprInfo ;
130
135
131
136
Original file line number Diff line number Diff line change @@ -44,12 +44,11 @@ echo "${BS}."
44
44
psql -l -A -q -t| tr '|' ' ' | grep -v '^template1 ' | \
45
45
while read DATABASE PGUSERID DATAPATH
46
46
do
47
- POSTGRES_USER=" ` psql -A -q -t template1 <<END
48
- select usename
49
- from pg_user
50
- where usesysid = $PGUSERID ;
51
- END` "
52
-
47
+ POSTGRES_USER=" ` echo \" \
48
+ select usename \
49
+ from pg_user \
50
+ where usesysid = $PGUSERID ; \" | \
51
+ psql -A -q -t template1` "
53
52
echo " ${BS} connect template1 $POSTGRES_USER "
54
53
echo " create database $DATABASE ; "
55
54
echo " ${BS} connect $DATABASE $POSTGRES_USER "
You can’t perform that action at this time.
0 commit comments