Re: Thread safe connection-name mapping in ECPG. Is it

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB SD
Тема Re: Thread safe connection-name mapping in ECPG. Is it
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA40184CFF1@m0114.s-mxs.net
обсуждение исходный текст
Ответы Re: Thread safe connection-name mapping in ECPG. Is it  (Shridhar Daithankar <shridhar@frodo.hserus.net>)
Список pgsql-hackers
> I am asking for CONNECTION being a variable of data type 'connection *' rather
> than 'const char *'. That would avoid name lookups.
>
> Is that out of spec?

Yes, but the preprocessor could still add an optimization ala 'connection *' for
the hardcoded cases (exec sql set connection 'myconn1'; exec sql at 'myconn1' ...).
It needs to maintain the string list for the non hardcoded cases though.

Andreas


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

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: ORDER BY different locales
Следующее
От: Shridhar Daithankar
Дата:
Сообщение: Re: Thread safe connection-name mapping in ECPG. Is it