*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: pg_dump.h,v 1.15 1997/06/02 02:52:06 scrappy Exp $
+ * $Id: pg_dump.h,v 1.16 1997/06/21 16:08:15 momjian Exp $
*
*
char* typdelim;
char* typdefault;
char* typrelid;
+ char* usename;
int passedbyvalue;
int isArray;
} TypeInfo;
int retset; /* 1 if the function returns a set, 0 otherwise */
char* prosrc;
char* probin;
+ char* usename;
int dumped; /* 1 if already dumped */
} FuncInfo;
not have the same order of attributes as
the POSTQUEL tables */
int *attlen; /* attribute lengths */
+ char* usename;
} TableInfo;
char *aggtranstype2;
char *agginitval1;
char *agginitval2;
+ char* usename;
} AggInfo;
typedef struct _oprInfo {
char *oprcanhash; /* can we use hash join strategy ? */
char *oprlsortop; /* oid's of the left and right sort operators */
char *oprrsortop;
+ char* usename;
} OprInfo;
psql -l -A -q -t| tr '|' ' ' | grep -v '^template1 ' | \
while read DATABASE PGUSERID DATAPATH
do
- POSTGRES_USER="`psql -A -q -t template1 <
-select usename
-from pg_user
-where usesysid = $PGUSERID;
-END`"
-
+ POSTGRES_USER="`echo \" \
+ select usename \
+ from pg_user \
+ where usesysid = $PGUSERID; \" | \
+ psql -A -q -t template1`"
echo "${BS}connect template1 $POSTGRES_USER"
echo "create database $DATABASE;"
echo "${BS}connect $DATABASE $POSTGRES_USER"