Re: psql \i handling ~ in specified file name

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql \i handling ~ in specified file name
Дата
Msg-id 20005.1071982556@sss.pgh.pa.us
обсуждение исходный текст
Ответ на psql \i handling ~ in specified file name  (Zach Irmen <zirmen@shaw.ca>)
Список pgsql-patches
Zach Irmen <zirmen@shaw.ca> writes:
> A reviewable patch that could handle tilde expansion for
> psql \i ~/filename

Needs a bit of work.  What happens if getenv("HOME") returns NULL?
You also need to think about Windows (dunno if the whole thing is
even meaningful there, but if it is then you need to allow for
backslash path separators).  Finally, couldn't we reduce the number
of times strings are strdup'd only to be freed again?  I don't think
doing it this way makes the code simpler --- it took me a fair while
to convince myself there was no memory leak.

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] Temporary tables and miscellaneous schemas
Следующее
От: Claudio Natoli
Дата:
Сообщение: fork/exec patch: pgstat + BootstrapMain