X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org
Received: from localhost (unknown [200.46.204.144])
by svr1.postgresql.org (Postfix) with ESMTP id 5B16052B7F
for ;
Wed, 10 Aug 2005 06:42:34 -0300 (ADT)
Received: from svr1.postgresql.org ([200.46.204.71])
by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024)
with ESMTP id 54122-10
for ;
Wed, 10 Aug 2005 09:42:26 +0000 (GMT)
Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net
[194.217.242.92])
by svr1.postgresql.org (Postfix) with ESMTP id D3E9552B60
for ; Wed, 10 Aug 2005 06:42:24 -0300 (ADT)
Received: from lfix.demon.co.uk ([80.177.205.209] helo=cerberus.lfix.co.uk)
by anchor-post-34.mail.demon.net with esmtp (Exim 4.42)
id 1E2n6Q-000AVS-F1
for pgsql-odbc@postgresql.org; Wed, 10 Aug 2005 09:42:26 +0000
Received: from linda.lfix.co.uk ([192.168.1.1])
by cerberus.lfix.co.uk with esmtp (Exim 4.50) id 1E2n6K-0003kc-T5
for pgsql-odbc@postgresql.org; Wed, 10 Aug 2005 10:42:20 +0100
Subject: Re: Updates to page on using psqlodbc with Debian
From: Oliver Elphick
Reply-To: olly@lfix.co.uk
To: pgsql-odbc@postgresql.org
In-Reply-To: <1123656955.2323.13.camel@linda>
References: <1123656955.2323.13.camel@linda>
Content-Type: multipart/mixed; boundary="=-wcPDgGegSs60c1MiB6mq"
Organization: LFIX Limited
Date: Wed, 10 Aug 2005 10:42:20 +0100
Message-Id: <1123666940.2323.35.camel@linda>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.3
X-LFIX-MailScanner: Found to be clean
X-LFIX-MailScanner-SpamCheck: not spam, SpamAssassin (score=-10.399,
required 5, autolearn=not spam, ALL_TRUSTED -3.30, BAYES_00 -2.60,
HAVE_NO_EXPERIENCE -4.50)
X-LFIX-MailScanner-From: olly@lfix.co.uk
X-Virus-Scanned: by amavisd-new at hub.org
X-Spam-Status: No, hits=0.055 tagged_above=0 required=5 tests=AWL,
FORGED_RCVD_HELO
X-Spam-Level:
X-Archive-Number: 200508/92
X-Sequence-Number: 5731
--=-wcPDgGegSs60c1MiB6mq
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Wed, 2005-08-10 at 07:55 +0100, Oliver Elphick wrote:
> 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.
That patch missed one path change. A new patch is attached.
--
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
--=-wcPDgGegSs60c1MiB6mq
Content-Description:
Content-Disposition: inline; filename=genpage.php.html.diff
Content-Type: text/x-patch; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
--- genpage.php.html 2005-08-10 07:45:32.000000000 +0100
+++ genpage.php.html.new 2005-08-10 10:40:10.340937831 +0100
@@ -125,6 +125,7 @@
Release Date: 17 April 2002
Amendments: 16 July 2002
Amendments: 17 March 2003
+Amendments: 10 August 2005
Description: Debian Linux: HOWTO set up odbc-postgresql with unixodbc to allow access to other Unix programs
@@ -138,30 +139,32 @@
2. Add a PostgreSQL driver to /etc/odbcinst.ini:
-
# odbcinst -i -d -f /usr/lib/postgresql/share/odbcinst.ini.template
+# odbcinst -i -d -f /usr/share/psqlodbc/odbcinst.ini.template
3. Add the template1 database (with read only access) to the default odbc.ini
-# cat /usr/lib/postgresql/share/odbc.ini.template >>/etc/odbc.ini
+# cat /usr/share/doc/odbc-postgresql/examples/odbc.ini.template >>/etc/odbc.ini
Edit /etc/odbc.ini as required, to add extra databases, change the read only
status and so on.
-4. Add ODBC required functions to the databases that you wish to access
- from ODBC:
+4. For release 07 of psqlodbc, add ODBC required functions to the
+databases that you wish to access from ODBC:
# su -s /bin/bash - postgres
$ for dbname in database1 database2 ...
do
- psql -d $dbname < /usr/lib/psqlodbc/odbc.sql
+ psql -d $dbname < /usr/share/psqlodbc/odbc.sql
done
If you include template1 in the list, any database created in future will
automatically have these functions included when it is created.
-
+For release 08, step 4 is not required, because the driver does the conversion automatically.
+
+
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 @@
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.
@@ -195,7 +195,7 @@
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.
Sample odbcinst.ini file
--=-wcPDgGegSs60c1MiB6mq--