pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: pgsql-odbc@postgresql.org
Subject: Updates to page on using psqlodbc with Debian
Date: Wed, 10 Aug 2005 07:55:55 +0100
Message-ID: <1123656955.2323.13.camel@linda> (raw)

There are certain changes needed to
http://gborg.postgresql.org/project/psqlodbc/genpage.php?howto-debian
with the latest releases of psqlodbc and the Debian packages.  Attached
is a diff to the webpage source.

-- 
Oliver Elphick                                          olly@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
                 ========================================
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html

Attachments:

genpage.php.html.diff (text/x-patch, 3.0K) download --- genpage.php.html 2005-08-10 07:45:32.315419408 +0100 +++ genpage.php.html.new 2005-08-10 07:54:47.648770747 +0100 @@ -125,6 +125,7 @@ Release Date: 17 April 2002<br> Amendments: 16 July 2002<br> Amendments: 17 March 2003<br> +Amendments: 10 August 2005<br> Description: Debian Linux: HOWTO set up odbc-postgresql with unixodbc to allow access to other Unix programs </i> <br><br> @@ -138,17 +139,17 @@ <b>2.</b> Add a PostgreSQL driver to /etc/odbcinst.ini:<br><br> -</font></p><blockquote><font size="-1"><i># odbcinst -i -d -f /usr/lib/postgresql/share/odbcinst.ini.template</i></font></blockquote> +</font></p><blockquote><font size="-1"><i># odbcinst -i -d -f /usr/share/psqlodbc/odbcinst.ini.template</i></font></blockquote> <font size="-1"><b>3.</b> Add the template1 database (with read only access) to the default odbc.ini<br><br> -</font><blockquote><font size="-1"><i># cat /usr/lib/postgresql/share/odbc.ini.template &gt;&gt;/etc/odbc.ini</i></font></blockquote> +</font><blockquote><font size="-1"><i># cat /usr/share/doc/odbc-postgresql/examples/odbc.ini.template &gt;&gt;/etc/odbc.ini</i></font></blockquote> <font size="-1"> Edit /etc/odbc.ini as required, to add extra databases, change the read only status and so on.<br><br> -<b>4.</b> Add ODBC required functions to the databases that you wish to access - from ODBC:<br><br> +<b>4.</b> For release 07 of psqlodbc, add ODBC required functions to the +databases that you wish to access from ODBC:<br><br> <i></i></font><blockquote> <font size="-1"><i> # su -s /bin/bash - postgres<br> @@ -160,8 +161,10 @@ <font size="-1"> If you include template1 in the list, any database created in future will automatically have these functions included when it is created.<br><br> -</font><p></p> +For release 08, step 4 is not required, because the driver does the conversion automatically. + +</font><p></p> <p> <font size="-1">At this point, you should be able to use the ODBC access features of any application to connect to any of the listed databases. For example, in @@ -179,10 +182,7 @@ <p> <font size="-1">You can create templates for different databases and allow users to add them to their own ~/.odbc.ini. Use the odbc.ini template file provided in -/usr/lib/postgresql/share/odbc.ini.template as a model. Ignore the file -/usr/lib/postgresql/lib/odbcinst.ini, which is provided by the postgresql -package. This may be good for use with iodbc, but I have no experience -of using that. +/usr/share/doc/odbc-postgresql/examples/odbc.ini.template as a model. </font></p> <p> @@ -195,7 +195,7 @@ <p> <font size="-1">Note: I have had a report that OpenOffice objects to tabs and/or whitespace in ~/.odbc.ini and /etc/odbc.ini. I have not found this problem with -StarOffice 5, however. +StarOffice 5, however. Neither does it seem to be a problem in openoffice.org 1.4. </font></p> <font size="-1"><b>Sample odbcinst.ini file</b>

view thread (6+ messages)  latest in thread

Message-ID: <1123656955.2323.13.camel@linda>
Permalink:  ../1123656955.2323.13.camel@linda/
Also on:    postgresql.org/message-id/1123656955.2323.13.camel@linda

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: olly@lfix.co.uk
  Subject: Re: Updates to page on using psqlodbc with Debian
  In-Reply-To: <1123656955.2323.13.camel@linda>
  References: <1123656955.2323.13.camel@linda>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox