Вся предоставленная на этом сервере информация собрана нами из разных источников. Если Вам кажется, что публикация каких-то документов нарушает чьи-либо авторские права, сообщите нам об этом.
~/.odbc.ini contains user-specified access information
for the psqlODBC driver.
The file uses conventions typical for Windows
Registry files, but despite this restriction can be made to work.
The .odbc.ini file has three required sections.
The first is [ODBC Data Sources]
which is a list of arbitrary names and descriptions for each database
you wish to access. The second required section is the
Data Source Specification and there will be one of these sections
for each database.
Each section must be labeled with the name given in
[ODBC Data Sources] and must contain the following entries:
Tip: Remember that the Postgres database name is
usually a single word, without path names of any sort.
The Postgres server manages the actual access
to the database, and you need only specify the name from the client.
Other entries may be inserted to control the format of the display.
The third required section is [ODBC]
which must contain the InstallDir keyword
and which may contain other options.
Here is an example .odbc.ini file,
showing access information for three databases: