Re: Australian timezone configure option

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Australian timezone configure option
Дата
Msg-id 8950.992362949@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Australian timezone configure option  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Here is a new version of the patch.

It's still horridly ugly.  Why not put the three Aussie-specific entries
in a separate aussie_datetktbl array, and have the lookup look like

    if (Australian_timezones)
    {
        tp = datebsearch(lowtoken, aussie_datetktbl, sz_aussie_datetktbl);
        if (tp == NULL)
            tp = datebsearch(lowtoken, datetktbl, szdatetktbl);
    }
    else
        tp = datebsearch(lowtoken, datetktbl, szdatetktbl);

instead of modifying the lookup table on the fly.

> I found I didn't need to clear the date cache.

Hmm, are you sure about that?  I'm not.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Australian timezone configure option
Следующее
От: chris.bitmead@health.gov.au
Дата:
Сообщение: Re: Australian timezone configure option