Skip site navigation (1) Skip section navigation (2)

Re: [BUGS] pg_dumpall

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Kardos, Dr(dot) Andreas" <kardos(at)repas-aeg(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: [BUGS] pg_dumpall
Date: 2000-03-04 23:00:59
Message-ID: Pine.LNX.4.21.0003042334170.352-200000@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-bugs
Kardos, Dr. Andreas writes:

> The pg_dumpall script is not compatible with 7.0 psql and createdb.

I've fixed up the logic and it seems to work but I attach it here so you
can try it because I don't have a reasonably-sized database around right
now.

Regarding the quoting, I'm inclined to say that
	FOO="`echo "$BAR"`"
style constructs are okay but I'd like to hear from anyone that thinks (or
knows) otherwise. At first I thought
	echo "$BAR" | read FOO
might do the trick but for some reason I couldn't get it to work.

I'd be interested in a definite solution to this because it seems some
other shell scripts in the tree suffer from similar problems.


> 1. pgsql -l delivers a different output (Owner instead of User ID).

> 2. createdb -help in the following line tries to connect the host "elp".

> 3. QNX4 only: The double quotes in
> 
>  POSTGRES_USER="`echo \" \
> 
> etc. must not be escaped with a backslash. Unfortunately I haven't found a
> simple solution working on all platforms. Thats why I am not sending a
> patch.


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e(at)gmx(dot)net                   75262 Uppsala
http://yi.org/peter-e/            Sweden

Attachment: pg_dumpall
Description: text/plain (1.9 KB)

In response to

  • pg_dumpall at 2000-03-03 15:06:45 from Kardos, Dr. Andreas

Responses

pgsql-bugs by date

Next:From: Jerome ALETDate: 2000-03-06 09:12:52
Subject: Re: [BUGS] grant/revoke bug with delete/update
Previous:From: Peter EisentrautDate: 2000-03-04 17:06:05
Subject: Re: [BUGS] initdb and version 7

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group