Re: Problems with pg_dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: papapep <papapep(at)gmx(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Problems with pg_dump
Date: 2002-12-16 21:19:22
Message-ID: 28422.1040073562@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

papapep <papapep(at)gmx(dot)net> writes:
>>> You mean you're doing
>>> pg_dump ... >DATABASE.out
>>> where DATABASE.out already exists and is marked read-only?

> No. It exists after doing pg_dump....etc,etc.. Before I've removed it
> to avoid these problems.

That's odd.

> But the question is, how is that pg_dump creates a file with
> read-only permissions?....astonishing for me....is it the default
> profile?? It isn't written in any of the docs I've read about it.

Well, pg_dump is not creating the file in this situation --- your shell
is. So it's got to have something to do with shell settings. May I
inquire what you have "umask" set to? Also, just exactly what
permissions is the file created with (ls -l output would be good).

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Daniel Whelan 2002-12-16 21:24:13 Batch Table Creation - Foreign Key Problem
Previous Message ghaverla 2002-12-16 20:01:01 Re: Problems with pg_dump