Re: Thread safe connection-name mapping in ECPG. Is it
Zeugswetter Andreas DCP SD <zeugswettera@spardat.at>
From: "Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>
To: "Shridhar Daithankar" <shridhar@frodo.hserus.net>, "Michael Meskes" <meskes@postgresql.org>
Cc: "PostgreSQL-development" <pgsql-hackers@postgresql.org>
Date: 2004-02-27T10:15:27Z
Lists: 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