Re: [GENERAL] PostgreSQL connect options?
От | Maarten Boekhold |
---|---|
Тема | Re: [GENERAL] PostgreSQL connect options? |
Дата | |
Msg-id | Pine.SUN.3.91.980801233433.970A-100000@dutepp0.et.tudelft.nl обсуждение исходный текст |
Ответ на | PostgreSQL connect options? (Roland Roberts <roberts@panix.com>) |
Список | pgsql-general |
On Sat, 1 Aug 1998, Roland Roberts wrote: > Once upon a time, I know I saw an example of using connect options to > specify things like a user name. I can't find any examples in any of > the references now. So what are some of the options and how does one > specify them? You want to do this from within a program? libpq has PQconnectdb(). You can use it like PQconnectdb("dbname=database user=username password=pwd authtype=password"); The perl module has PQconnectdb() too, works the same way. I suppose the other interfaces have similar named functions. Maarten _____________________________________________________________________________ | TU Delft, The Netherlands, Faculty of Information Technology and Systems | | Department of Electrical Engineering | | Computer Architecture and Digital Technique section | | M.Boekhold@et.tudelft.nl | -----------------------------------------------------------------------------
В списке pgsql-general по дате отправления: