Re: Problem with pg_upgrade's directory write check on Windows
От | Robert Haas |
---|---|
Тема | Re: Problem with pg_upgrade's directory write check on Windows |
Дата | |
Msg-id | CA+TgmobXrxWqE5tsY_iEY-Un3eb8v-MsJ1ENtPsffpLRxk2cbw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Problem with pg_upgrade's directory write check on Windows (Bruce Momjian <bruce@momjian.us>) |
Ответы |
Re: Problem with pg_upgrade's directory write check
on Windows
|
Список | pgsql-hackers |
On Sat, Jul 23, 2011 at 9:14 AM, Bruce Momjian <bruce@momjian.us> wrote: > Andrew Dunstan wrote: >> > We do use access() in a few other places in our code, but not for >> > directory permission checks. >> > >> > Any ideas on a solution? Will checking stat() work? Do I have to try >> > creating a dummy file and delete it? >> >> That looks like the obvious solution - it's what came to my mind even >> before reading this sentence. > > Well, the easy fix is to see if ALL_DUMP_FILE > ("pg_upgrade_dump_all.sql") exists, and if so remove it, and if not, > create it and remove it. > > Should I fix this in pg_upgrade 9.1 for Windows or just in 9.2? The > check works fine on non-Windows. Seems worth back-patching to me. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: