pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedHi!
21+ messages / 10 participants
[nested] [flat]
* Hi!
@ 2003-06-23 22:30 Armando Bañuelos <armando@maprono.com.mx>
0 siblings, 1 reply; 21+ messages in thread
From: Armando Bañuelos @ 2003-06-23 22:30 UTC (permalink / raw)
To: pgsql-odbc
I'm using your odbc driver and it seems to be ok in almost everything... the only thing I see wrongly is when i´m not using the Microsoft ODBC Engine... when I´m inserting or editing a recordset I always get the same error in the exception but the error en the server console is rigth... I´m using VC 6.0 and the MFC ODBC Classes... a workaround to this is to use transaction to insert but i dislike that workaraound... Other funcionality is about the bytea and the binary objects in VC... The CByteArray only gives me chance of upload/download 254 bytes unless I change the max varchar or set the unknows as LongVarChar... I think you should give the bytea a representation as lo and don't limit as an unknown data type... The work around this limitation is to use the Microsoft ODBC Engine, but i really need to use dynamic cursor because the nature of the project...
Finally, if you want help in developing and programming the driver I'm a programmer with experience in DB Programs and I can help you if youn like.
Thankx,
Armando Bañuelos
Torreón, Coahuila. México.
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2003-06-30 13:57 Hiroshi Inoue <inoue@tpf.co.jp>
parent: Armando Bañuelos <armando@maprono.com.mx>
0 siblings, 0 replies; 21+ messages in thread
From: Hiroshi Inoue @ 2003-06-30 13:57 UTC (permalink / raw)
To: 'Armando Baelos' <armando@maprono.com.mx>; +Cc: pgsql-odbc
-----Original Message-----
> From: Armando Baelos
> I'm using your odbc driver and it seems to be ok in almost everything... the only thing I see wrongly is
> when i´m not using the Microsoft ODBC Engine... when I´m inserting or editing a recordset I always get
> the same error in the exception but the error en the server console is rigth... I´m using VC 6.0 and the
> MFC ODBC Classes... a workaround to this is to use transaction to insert but i dislike that workaraound...
Are you checking the "Updatable cursors" option ?
What kind of recordset are you opening ?
> Other funcionality is about the bytea and the binary objects in VC... The CByteArray only gives me chance
> of upload/download 254 bytes unless I change the max varchar or set the unknows as LongVarChar...
> I think you should give the bytea a representation as lo and don't limit as an unknown data type...
Please try to check the "bytea as LongVarBinary" DSN option.
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 21+ messages in thread
* HI
@ 2004-07-03 08:44 scotty <scotty@linuxtime.it>
0 siblings, 1 reply; 21+ messages in thread
From: scotty @ 2004-07-03 08:44 UTC (permalink / raw)
To: pgsql-odbc
Hi I'm a programmer graduated in Bologna "Facolta di Ingegneria", and I've
discussed a thesis about similarity search written in C language.
I'm one of the Italian Postgresql Mailing list administrator at
postgresql.linuxtime.it
I read the post on popstgresql.org
I like C and I like postgresql, and I wish to join this project, but I've
never written a driver odbc and I'd like to learn about it, I hope so.
Bye
Enrico Pirozzi
scotty@linuxtime.it
^ permalink raw reply [nested|flat] 21+ messages in thread
* Hi
@ 2004-07-04 13:37 Andrzej Jagiellowicz <andrzej@jagiellowicz.net>
parent: scotty <scotty@linuxtime.it>
0 siblings, 0 replies; 21+ messages in thread
From: Andrzej Jagiellowicz @ 2004-07-04 13:37 UTC (permalink / raw)
To: pgsql-odbc
Where to find ODBC documentation?
On the web or in books?
bye
Andrzej
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi
@ 2004-07-05 09:06 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 21+ messages in thread
From: Dave Page @ 2004-07-05 09:06 UTC (permalink / raw)
To: Andrzej Jagiellowicz <andrzej@jagiellowicz.net>; pgsql-odbc
> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Andrzej
> Jagiellowicz
> Sent: 04 July 2004 14:37
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] Hi
>
> Where to find ODBC documentation?
> On the web or in books?
Hi Andrzej,
The ODBC specs can be found in the Microsoft MDAC SDK, and also online
at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/ht
m/odbcabout_this_manual.asp (as I have just found).
Regards Dave.
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: HI
@ 2004-07-05 09:15 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 21+ messages in thread
From: Dave Page @ 2004-07-05 09:15 UTC (permalink / raw)
To: scotty <scotty@linuxtime.it>; pgsql-odbc
> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of scotty
> Sent: 03 July 2004 09:45
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] HI
>
> Hi I'm a programmer graduated in Bologna "Facolta di
> Ingegneria", and I've discussed a thesis about similarity
> search written in C language.
>
> I'm one of the Italian Postgresql Mailing list administrator
> at postgresql.linuxtime.it
>
> I read the post on popstgresql.org
>
> I like C and I like postgresql, and I wish to join this
> project, but I've never written a driver odbc and I'd like to
> learn about it, I hope so.
Hi Enrico (or do you prefer Scotty?),
We would welcome your involvement in the project - any contribution,
however small or large is appreciated. I sent an email to the odbc list
last week
(http://archives.postgresql.org/pgsql-odbc/2004-06/msg00059.php),
detailing some of the work that needs to be done and giving a little
background. As this is open source, I'm obviously not going to assign
you a task :-), but please feel free to look at whatever interests you
there, or look at some of the bugs/feature requests on the website at
gborg.postgresql.org/project/psqlodbc if you prefer.
Regards, Dave.
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: HI
@ 2004-07-06 07:22 Dave Page <dpage@vale-housing.co.uk>
0 siblings, 1 reply; 21+ messages in thread
From: Dave Page @ 2004-07-06 07:22 UTC (permalink / raw)
To: scotty <scotty@linuxtime.it>; +Cc: pgsql-odbc
> -----Original Message-----
> From: scotty [mailto:scotty@linuxtime.it]
> Sent: 06 July 2004 08:52
> To: Dave Page
> Subject: RE: [ODBC] HI
>
Hi Scotty,
> I sow the link and I wish to learn about point 5:
>
> 5) SSL support should be added.
>
> Where I can see any kind of documentation to begin my work?
There is little documentation as nobody started any work yet :-(. I
think the first thing to consider, is whether it would be easier to
accommodate point 4 as well (upgrade to v3 protocol) at the same time as
adding SSL support by ripping out all the comms code and replacing it
with libpq. I'd really like to hear some opinions on that idea before
anything else is done, as not only would it solve both the current
problems, but it would also future-proof us against future protocol
changes.
The best bet for this one is simply to start looking at the code and try
figuring it out I think - I warn you though, this one is probably not
gonna be easy (though just adding SSL support to the current code is
probably the easiest option).
Some pointers:
V2 FE/BE Protocol:
http://www.postgresql.org/docs/7.3/static/protocol.html
V3 FE/BE Prococol:
http://www.postgresql.org/docs/7.4/static/protocol.html
psqlODBC source code:
http://gborg.postgresql.org/project/psqlodbc/cvs/cvs.php/psqlodbc
Libpq source code:
http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/interfaces/l
ibpq/
Regards, Dave.
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: HI
@ 2004-07-06 13:31 Tom Lane <tgl@sss.pgh.pa.us>
parent: Dave Page <dpage@vale-housing.co.uk>
0 siblings, 0 replies; 21+ messages in thread
From: Tom Lane @ 2004-07-06 13:31 UTC (permalink / raw)
To: Dave Page <dpage@vale-housing.co.uk>; +Cc: scotty <scotty@linuxtime.it>; pgsql-odbc
"Dave Page" <dpage@vale-housing.co.uk> writes:
> I think the first thing to consider, is whether it would be easier to
> accommodate point 4 as well (upgrade to v3 protocol) at the same time as
> adding SSL support by ripping out all the comms code and replacing it
> with libpq. I'd really like to hear some opinions on that idea before
> anything else is done, as not only would it solve both the current
> problems, but it would also future-proof us against future protocol
> changes.
> The best bet for this one is simply to start looking at the code and try
> figuring it out I think - I warn you though, this one is probably not
> gonna be easy
One point to make here is that libpq doesn't currently expose the full
power of the v3 protocol, and it's entirely possible that there are
things ODBC needs that you just can't get at in current libpq. We'd
certainly be open to well-designed extensions of libpq's API to fix
any such problems ... but keep in mind that if such is needed, you'd be
tying ODBC to 7.6 or later libpq. Might pose some distribution
problems.
I think that reimplementing ODBC on top of libpq would probably be
a good plan in the long haul, since in theory it ought to reduce
maintenance effort in the long haul. But it won't be a quick fix.
regards, tom lane
^ permalink raw reply [nested|flat] 21+ messages in thread
* Hi!
@ 2009-12-01 20:03 Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
0 siblings, 1 reply; 21+ messages in thread
From: Daniela Mamede d'Almeida @ 2009-12-01 20:03 UTC (permalink / raw)
To: pgsql-odbc
Hi!
I'm trying to connect an Oracle Db with a PostgreSQL Db, by means of
Oracle heterogeneous service.
I've installed (in my oracle server) DG4ODBC which is the oracle
gateway, UnixODBC which is the driver manager... and all I need now is
the PostgreSQL driver. I've downloaded psqlodbc... but I can't
"configure" it as it says that theres a missing variable ...
"PG_CONFIG". I've found the pg_config file in my PostgreSQL server.. but
I don't know if there's any other driver to install which wouldn expect
pg_config to be there.
Both servers are Linux RHEL 4. Oracle version: 10.2.0.4... PostgreSQL
version: 8.2.4
Thanks for your help!
Daniela.
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2009-12-02 01:20 Craig Ringer <craig@postnewspapers.com.au>
parent: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
0 siblings, 1 reply; 21+ messages in thread
From: Craig Ringer @ 2009-12-02 01:20 UTC (permalink / raw)
To: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>; +Cc: pgsql-odbc
On 2/12/2009 4:03 AM, Daniela Mamede d'Almeida wrote:
> Hi!
> I'm trying to connect an Oracle Db with a PostgreSQL Db, by means of
> Oracle heterogeneous service.
> I've installed (in my oracle server) DG4ODBC which is the oracle
> gateway, UnixODBC which is the driver manager... and all I need now is
> the PostgreSQL driver. I've downloaded psqlodbc... but I can't
> "configure" it as it says that theres a missing variable ...
> "PG_CONFIG".
Possible hints:
http://www.google.com.au/search?q="PG_CONFIG"+"unixodbc";
Particularly:
http://cpansearch.perl.org/src/RKIES/UnixODBC-0.34/dbms/README
... which suggests that you must specify PG_CONFIG as an environment
variable when calling configure:
# export PG_CONFIG=/usr/local/pgsql/bin/pg_config
# ./configure
(adjust PG_CONFIG for the location of pg_config on your system).
--
Craig Ringer
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2009-12-02 14:35 Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
parent: Craig Ringer <craig@postnewspapers.com.au>
0 siblings, 2 replies; 21+ messages in thread
From: Daniela Mamede d'Almeida @ 2009-12-02 14:35 UTC (permalink / raw)
To: Craig Ringer <craig@postnewspapers.com.au>; +Cc: pgsql-odbc
Thanks for answering!
My problem is that the Oracle Db and the PostgreSQL Db are both on
different servers, and I;ve been told by Oracle support that I need to
install the PostgreSQL driver in my Oracle server. Now I don't know how
to solve the PG_CONFIG error, as there's no pg_config file in the Oracle
server!
How can I solve this?
Thanks a lot!
Daniela.
Craig Ringer escribió:
> On 2/12/2009 4:03 AM, Daniela Mamede d'Almeida wrote:
>> Hi!
>> I'm trying to connect an Oracle Db with a PostgreSQL Db, by means of
>> Oracle heterogeneous service.
>> I've installed (in my oracle server) DG4ODBC which is the oracle
>> gateway, UnixODBC which is the driver manager... and all I need now is
>> the PostgreSQL driver. I've downloaded psqlodbc... but I can't
>> "configure" it as it says that theres a missing variable ...
>> "PG_CONFIG".
>
> Possible hints:
>
> http://www.google.com.au/search?q="PG_CONFIG"+"unixodbc";
>
> Particularly:
>
> http://cpansearch.perl.org/src/RKIES/UnixODBC-0.34/dbms/README
>
> ... which suggests that you must specify PG_CONFIG as an environment
> variable when calling configure:
>
> # export PG_CONFIG=/usr/local/pgsql/bin/pg_config
> # ./configure
>
> (adjust PG_CONFIG for the location of pg_config on your system).
>
> --
> Craig Ringer
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2009-12-02 15:00 Jonah H. Harris <jonah.harris@gmail.com>
parent: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
1 sibling, 1 reply; 21+ messages in thread
From: Jonah H. Harris @ 2009-12-02 15:00 UTC (permalink / raw)
To: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>; +Cc: Craig Ringer <craig@postnewspapers.com.au>; pgsql-odbc
On Wed, Dec 2, 2009 at 9:35 AM, Daniela Mamede d'Almeida <
dmamede@mecon.gov.ar> wrote:
> Thanks for answering!
> My problem is that the Oracle Db and the PostgreSQL Db are both on
> different servers, and I;ve been told by Oracle support that I need to
> install the PostgreSQL driver in my Oracle server. Now I don't know how to
> solve the PG_CONFIG error, as there's no pg_config file in the Oracle
> server!
> How can I solve this?
>
Yes, you'll have to install Postgres (or at least the Postgres client
libraries) on your Oracle server.
--
Jonah H. Harris, Senior DBA
myYearbook.com
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2009-12-02 15:05 Craig Ringer <craig@postnewspapers.com.au>
parent: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
1 sibling, 0 replies; 21+ messages in thread
From: Craig Ringer @ 2009-12-02 15:05 UTC (permalink / raw)
To: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>; +Cc: pgsql-odbc
On 2/12/2009 10:35 PM, Daniela Mamede d'Almeida wrote:
> Thanks for answering!
> My problem is that the Oracle Db and the PostgreSQL Db are both on
> different servers, and I;ve been told by Oracle support that I need to
> install the PostgreSQL driver in my Oracle server. Now I don't know how
> to solve the PG_CONFIG error, as there's no pg_config file in the Oracle
> server!
Er ... The file `pg_config' is part of the PostgreSQL package. It's
installed with the server. It's a program that should be in the server's
binary directory, in the same place as `psql'. Since you're building
pgodbc from source, I'm assuming you also built and installed PostgreSQL
from sources, so you should have it. If you installed distro binaries,
you'll probably need a -dev or -devel package for libpq too.
HOWEVER, if you installed PostgreSQL using your distro's packaging
system, you should just install psqlodbc that way too, not build it from
sources. It should be in your distro's package management system.
On my Debian and Ubuntu systems, for example, I just "apt-get install
odbc-postgresql" to install it.
If you'd given us a few basic details like what PostgreSQL version you
had, where you got it from, how you installed it, the OS and version you
were running on, etc, it might be a little bit easier to help you with
this. See:
http://wiki.postgresql.org/wiki/Guide_to_reporting_problems
--
Craig Ringer
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2009-12-04 18:05 Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
parent: Jonah H. Harris <jonah.harris@gmail.com>
0 siblings, 2 replies; 21+ messages in thread
From: Daniela Mamede d'Almeida @ 2009-12-04 18:05 UTC (permalink / raw)
To: Jonah H. Harris <jonah.harris@gmail.com>; +Cc: Craig Ringer <craig@postnewspapers.com.au>; pgsql-odbc
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jonah!<br>
I installed the client libraries, but the error is still there... The
pkg I installed is postgresql-libs-7.4.13-2.RHEL4.1.x86_64.rpm<br>
Do I have to do anything?<br>
<br>
Thanks!<br>
Daniela.<br>
<br>
Jonah H. Harris escribió:
<blockquote
cite="mid:36e682920912020700o4dc0a460rdb60af4aa4f9d7ef@mail.gmail.com"
type="cite">
<div class="gmail_quote">On Wed, Dec 2, 2009 at 9:35 AM, Daniela
Mamede d'Almeida <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:dmamede@mecon.gov.ar">dmamede@mecon.gov.ar</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks
for answering!<br>
My problem is that the Oracle Db and the PostgreSQL Db are both on
different servers, and I;ve been told by Oracle support that I need to
install the PostgreSQL driver in my Oracle server. Now I don't know how
to solve the PG_CONFIG error, as there's no pg_config file in the
Oracle server!<br>
How can I solve this?<br>
</blockquote>
<div><br>
Yes, you'll have to install Postgres (or at least the Postgres client
libraries) on your Oracle server.<br>
</div>
</div>
<br>
-- <br>
Jonah H. Harris, Senior DBA<br>
myYearbook.com<br>
<br>
</blockquote>
</body>
</html>
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2009-12-04 19:31 Jonah H. Harris <jonah.harris@gmail.com>
parent: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
1 sibling, 0 replies; 21+ messages in thread
From: Jonah H. Harris @ 2009-12-04 19:31 UTC (permalink / raw)
To: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>; +Cc: Craig Ringer <craig@postnewspapers.com.au>; pgsql-odbc
On Fri, Dec 4, 2009 at 1:05 PM, Daniela Mamede d'Almeida <
dmamede@mecon.gov.ar> wrote:
> I installed the client libraries, but the error is still there... The pkg
> I installed is postgresql-libs-7.4.13-2.RHEL4.1.x86_64.rpm
> Do I have to do anything?
>
Hey Daniela,
Let me update my how-to doc for you.
--
Jonah H. Harris, Senior DBA
myYearbook.com
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2009-12-05 02:28 Craig Ringer <craig@postnewspapers.com.au>
parent: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
1 sibling, 1 reply; 21+ messages in thread
From: Craig Ringer @ 2009-12-05 02:28 UTC (permalink / raw)
To: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>; +Cc: Jonah H. Harris <jonah.harris@gmail.com>; pgsql-odbc
On 5/12/2009 2:05 AM, Daniela Mamede d'Almeida wrote:
> Hi Jonah!
> I installed the client libraries, but the error is still there... The
> pkg I installed is postgresql-libs-7.4.13-2.RHEL4.1.x86_64.rpm
> Do I have to do anything?
Install the PgODBC packages too, rather than trying to build PgODBC from
source. Assuming there are any for RHEL4 - I can't find a package search
like `packages.debian.org' for RHEL, but the distrowatch source package
list doesn't include unixodbc so it might not be included in the system
packages.
If you *must* install PgODBC from source, install the -dev or -devel rpm
for the client libraries too, since that should contain pg_config . You
might also need to install unixodbc; I'm not sure about that.
--
Craig Ringer
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2009-12-15 15:21 Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
parent: Craig Ringer <craig@postnewspapers.com.au>
0 siblings, 1 reply; 21+ messages in thread
From: Daniela Mamede d'Almeida @ 2009-12-15 15:21 UTC (permalink / raw)
To: Craig Ringer <craig@postnewspapers.com.au>; +Cc: Jonah H. Harris <jonah.harris@gmail.com>; pgsql-odbc
Hi List!
After looking for a suitable pkg for a long time, I've found
postgresql-devel-8.4.1-1PGDG.rhel4.x86_64.rpm which sounded like what I
needed! But when I tried to install it, it asked for some dependencies,
and those dependencies asked for other dependencies... and I almost got
all Postgres pkg installed by the end, and that's not what I want.
Isn't there a better way to get pg_config?
Thanks a lot for your help!
Daniela.
Craig Ringer escribió:
> On 5/12/2009 2:05 AM, Daniela Mamede d'Almeida wrote:
>> Hi Jonah!
>> I installed the client libraries, but the error is still there... The
>> pkg I installed is postgresql-libs-7.4.13-2.RHEL4.1.x86_64.rpm
>> Do I have to do anything?
>
> Install the PgODBC packages too, rather than trying to build PgODBC
> from source. Assuming there are any for RHEL4 - I can't find a package
> search like `packages.debian.org' for RHEL, but the distrowatch source
> package list doesn't include unixodbc so it might not be included in
> the system packages.
>
> If you *must* install PgODBC from source, install the -dev or -devel
> rpm for the client libraries too, since that should contain pg_config
> . You might also need to install unixodbc; I'm not sure about that.
>
> --
> Craig Ringer
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2009-12-15 16:56 Adrian Klaver <aklaver@comcast.net>
parent: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
0 siblings, 1 reply; 21+ messages in thread
From: Adrian Klaver @ 2009-12-15 16:56 UTC (permalink / raw)
To: pgsql-odbc
On Tuesday 15 December 2009 7:21:54 am Daniela Mamede d'Almeida wrote:
> Hi List!
> After looking for a suitable pkg for a long time, I've found
> postgresql-devel-8.4.1-1PGDG.rhel4.x86_64.rpm which sounded like what I
> needed! But when I tried to install it, it asked for some dependencies,
> and those dependencies asked for other dependencies... and I almost got
> all Postgres pkg installed by the end, and that's not what I want.
> Isn't there a better way to get pg_config?
>
> Thanks a lot for your help!
> Daniela.
>
>
The thing to keep in mind is that pg_config is just a helper program. To quote
the docs:
http://www.postgresql.org/docs/8.4/interactive/app-pgconfig.html
"The pg_config utility prints configuration parameters of the currently
installed version of PostgreSQL. It is intended, for example, to be used by
software packages that want to interface to PostgreSQL to facilitate finding
the required header files and libraries. "
In order for pg_config to work the other files/libraries need to be installed.
--
Adrian Klaver
aklaver@comcast.net
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2009-12-15 17:16 Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
parent: Adrian Klaver <aklaver@comcast.net>
0 siblings, 2 replies; 21+ messages in thread
From: Daniela Mamede d'Almeida @ 2009-12-15 17:16 UTC (permalink / raw)
To: Adrian Klaver <aklaver@comcast.net>; +Cc: pgsql-odbc
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Oracle support told me to install PostgreSQL driver in my Oracle
server. What I don't understand is what's the use of running pg_config
in a server where there's no Postgre installed.<br>
Maybe there's another postgresql driver that wouldn't expect pg_config
to be there. I there any?<br>
<br>
Thanks!!<br>
<br>
Adrian Klaver escribió:
<blockquote cite="mid:200912150856.28133.aklaver@comcast.net"
type="cite">
<pre wrap="">On Tuesday 15 December 2009 7:21:54 am Daniela Mamede d'Almeida wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi List!
After looking for a suitable pkg for a long time, I've found
postgresql-devel-8.4.1-1PGDG.rhel4.x86_64.rpm which sounded like what I
needed! But when I tried to install it, it asked for some dependencies,
and those dependencies asked for other dependencies... and I almost got
all Postgres pkg installed by the end, and that's not what I want.
Isn't there a better way to get pg_config?
Thanks a lot for your help!
Daniela.
</pre>
</blockquote>
<pre wrap=""><!---->
The thing to keep in mind is that pg_config is just a helper program. To quote
the docs:
<a class="moz-txt-link-freetext" href="http://www.postgresql.org/docs/8.4/interactive/app-pgconfig.html">http://www.postgresql.org/d...;
"The pg_config utility prints configuration parameters of the currently
installed version of PostgreSQL. It is intended, for example, to be used by
software packages that want to interface to PostgreSQL to facilitate finding
the required header files and libraries. "
In order for pg_config to work the other files/libraries need to be installed.
</pre>
</blockquote>
</body>
</html>
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2009-12-15 18:14 Adrian Klaver <aklaver@comcast.net>
parent: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
1 sibling, 0 replies; 21+ messages in thread
From: Adrian Klaver @ 2009-12-15 18:14 UTC (permalink / raw)
To: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>; +Cc: pgsql-odbc
On Tuesday 15 December 2009 9:16:41 am Daniela Mamede d'Almeida wrote:
> Oracle support told me to install PostgreSQL driver in my Oracle server.
> What I don't understand is what's the use of running pg_config in a server
> where there's no Postgre installed. Maybe there's another postgresql driver
> that wouldn't expect pg_config to be there. I there any?
>
> Thanks!!
>
pg_config is not the problem, it is just a program to make compiling the ODBC
driver easier. You could specify the locations for the necessary files to the
configure program manually without using pg_config. The issue is that in order
to compile the driver you need the Postgres files/libraries. That being said
did you try the rpm below:
http://yum.pgsqlrpms.org/8.2/redhat/rhel-4-x86_64/postgresql-odbc-08.03.0400-1PGDG.rhel4.x86_64.rpm
Note:This is for version Postgres 8.2 which is what you originally said you are
using.
You previous email had postgresql-devel-8.4.1-1PGDG.rhel4.x86_64.rpm which is
for Postgres 8.4 and may be part of the problem.
--
Adrian Klaver
aklaver@comcast.net
^ permalink raw reply [nested|flat] 21+ messages in thread
* Re: Hi!
@ 2010-01-13 19:48 Jonah H. Harris <jonah.harris@gmail.com>
parent: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
1 sibling, 0 replies; 21+ messages in thread
From: Jonah H. Harris @ 2010-01-13 19:48 UTC (permalink / raw)
To: Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>; +Cc: Adrian Klaver <aklaver@comcast.net>; pgsql-odbc
On Tue, Dec 15, 2009 at 12:16 PM, Daniela Mamede d'Almeida <
dmamede@mecon.gov.ar> wrote:
> Oracle support told me to install PostgreSQL driver in my Oracle server.
> What I don't understand is what's the use of running pg_config in a server
> where there's no Postgre installed.
> Maybe there's another postgresql driver that wouldn't expect pg_config to
> be there. I there any?
>
I hate the pgodbc driver and given that I spent an hour trying to get ODBCng
working with 11.2 on CentOS 5.4 x86_64 with no success, you may want to look
at this article.
I can confirm that the following works as expected, though it uses the
commercial PostgreSQL DataDirect driver:
http://eduardolegatti.blogspot.com/2009/07/abordando-o-uso-de-database-links-em.html
--
Jonah H. Harris, Senior DBA
myYearbook.com
^ permalink raw reply [nested|flat] 21+ messages in thread
end of thread, other threads:[~2010-01-13 19:48 UTC | newest]
Thread overview: 21+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-23 22:30 Hi! Armando Bañuelos <armando@maprono.com.mx>
2003-06-30 13:57 ` Hiroshi Inoue <inoue@tpf.co.jp>
2004-07-03 08:44 HI scotty <scotty@linuxtime.it>
2004-07-04 13:37 ` Hi Andrzej Jagiellowicz <andrzej@jagiellowicz.net>
2004-07-05 09:06 Re: Hi Dave Page <dpage@vale-housing.co.uk>
2004-07-05 09:15 Re: HI Dave Page <dpage@vale-housing.co.uk>
2004-07-06 07:22 Re: HI Dave Page <dpage@vale-housing.co.uk>
2004-07-06 13:31 ` Re: HI Tom Lane <tgl@sss.pgh.pa.us>
2009-12-01 20:03 Hi! Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
2009-12-02 01:20 ` Craig Ringer <craig@postnewspapers.com.au>
2009-12-02 14:35 ` Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
2009-12-02 15:00 ` Jonah H. Harris <jonah.harris@gmail.com>
2009-12-04 18:05 ` Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
2009-12-04 19:31 ` Jonah H. Harris <jonah.harris@gmail.com>
2009-12-05 02:28 ` Craig Ringer <craig@postnewspapers.com.au>
2009-12-15 15:21 ` Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
2009-12-15 16:56 ` Adrian Klaver <aklaver@comcast.net>
2009-12-15 17:16 ` Daniela Mamede d'Almeida <dmamede@mecon.gov.ar>
2009-12-15 18:14 ` Adrian Klaver <aklaver@comcast.net>
2010-01-13 19:48 ` Jonah H. Harris <jonah.harris@gmail.com>
2009-12-02 15:05 ` Craig Ringer <craig@postnewspapers.com.au>
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