Re: Thread safe connection-name mapping in ECPG. Is it - Mailing list pgsql-hackers

From Zeugswetter Andreas SB SD
Subject Re: Thread safe connection-name mapping in ECPG. Is it
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA40184CFF1@m0114.s-mxs.net
Whole thread Raw
Responses Re: Thread safe connection-name mapping in ECPG. Is it  (Shridhar Daithankar <shridhar@frodo.hserus.net>)
List 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 by date:

Previous
From: Karel Zak
Date:
Subject: Re: ORDER BY different locales
Next
From: Shridhar Daithankar
Date:
Subject: Re: Thread safe connection-name mapping in ECPG. Is it