Re: emergency outage requiring database restart

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: emergency outage requiring database restart
Дата
Msg-id EDB11909-6127-4629-9196-36D6780FA412@anarazel.de
обсуждение исходный текст
Ответ на Re: emergency outage requiring database restart  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: emergency outage requiring database restart  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-hackers

On October 26, 2016 9:38:49 PM GMT+03:00, Merlin Moncure <mmoncure@gmail.com> wrote:
>On Wed, Oct 26, 2016 at 1:34 PM, Andres Freund <andres@anarazel.de>
>wrote:
>> Any chance that plsh or the script it executes does anything with the
>file descriptors it inherits? That'd certainly one way to get into odd
>corruption issues.
>
>not sure.  it's pretty small -- see
>https://github.com/petere/plsh/blob/master/plsh.c

Afaics that could also be in your script, not just plsh. The later doesn't seem to close all file handles above stderr,
whichmeans that all handles for relations etc week be open in your script.  If you e.g. do any unusual redirections
(2>&17or such), that could end badly.   But I'm just on my phone, in a taxi without seatbelts, at 60mph, so I didn't
lookcarefully.
 

Andres
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: macaddr 64 bit (EUI-64) datatype support
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: emergency outage requiring database restart