comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: postgresql queries
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: postgresql queries [message #58028] Mon, 14 January 2008 01:06
Allan Whiteford is currently offline  Allan Whiteford
Messages: 117
Registered: June 2006
Senior Member
Robbie wrote:
> Hi Allan,
>
> I didn't realize that your driver existed.
>
> I've been doing much that same, but using libpq++. I've been playing
> with large object support.
>
> I tried using IDLdbDatabase. I found it difficult to get working and
> completely useless when I finally managed to write a query. The data
> type mapping was all wrong and I could not include quotes (') in my
> query. The error messages and segmentation faults were so cryptic that
> I gave up.
>
> Robbie

Robbie,

It's not mine, sorry if it seemed like I was claiming credit.

I just came across it while looking for a MySQL API a while back. I had
similar issues when looking at IDLdbDatabase but I don't think I got as
far as you.

Thanks,

Allan
Re: postgresql queries [message #58039 is a reply to message #58028] Sat, 12 January 2008 03:32 Go to previous message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
i did sometimes ago connect to MySQL and Oracle Express Edition
databases from IDL
I use ODBC drivers from Oracle site and MySQL site, becouse Dataminer
don't support them (as show in IDL help). So you can try Postgres ODBC
driver
Re: postgresql queries [message #58041 is a reply to message #58039] Fri, 11 January 2008 14:17 Go to previous message
Robbie is currently offline  Robbie
Messages: 165
Registered: February 2006
Senior Member
Hi Allan,

I didn't realize that your driver existed.

I've been doing much that same, but using libpq++. I've been playing
with large object support.

I tried using IDLdbDatabase. I found it difficult to get working and
completely useless when I finally managed to write a query. The data
type mapping was all wrong and I could not include quotes (') in my
query. The error messages and segmentation faults were so cryptic that
I gave up.

Robbie
Re: postgresql queries [message #58060 is a reply to message #58041] Fri, 11 January 2008 08:20 Go to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
On Jan 11, 11:08 am, Allard de Wit <allard.de...@wur.nl> wrote:
> On Jan 11, 4:55 pm, Dave <Confused.Scient...@gmail.com> wrote:
>
>> Does anyone know if there is a general way to connect and query a
>> postgresql database from within IDL using linux and os x? My group
>> has a few linux licenses for 6.4/7.0 but I'm using an older version of
>> the student version on my laptop (os x).
>
>> Many thanks,
>> Dave
>
> Dear Dave,
>
> You will probably need the IDL dataminer which is licensed separately.
> I am not sure whether it supports PostgreSQL though.
> The other route is to write a DLM using the open source drivers for
> postgress, but I have no experience with that.
>
> If IDL is not strictly needed, you may consider Python which has
> excellent DB support including PostgreSQL.
>
> with best regards,
>
> Allard

I have done this before with mysql with spawn statements calling
queries. It worked, dataminer is better but costs money.

Cheers,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
Re: postgresql queries [message #58061 is a reply to message #58060] Fri, 11 January 2008 08:08 Go to previous message
wita is currently offline  wita
Messages: 43
Registered: January 2005
Member
On Jan 11, 4:55 pm, Dave <Confused.Scient...@gmail.com> wrote:
> Does anyone know if there is a general way to connect and query a
> postgresql database from within IDL using linux and os x? My group
> has a few linux licenses for 6.4/7.0 but I'm using an older version of
> the student version on my laptop (os x).
>
> Many thanks,
> Dave

Dear Dave,

You will probably need the IDL dataminer which is licensed separately.
I am not sure whether it supports PostgreSQL though.
The other route is to write a DLM using the open source drivers for
postgress, but I have no experience with that.

If IDL is not strictly needed, you may consider Python which has
excellent DB support including PostgreSQL.

with best regards,

Allard
Re: postgresql queries [message #58062 is a reply to message #58061] Fri, 11 January 2008 08:02 Go to previous message
Allan Whiteford is currently offline  Allan Whiteford
Messages: 117
Registered: June 2006
Senior Member
Dave wrote:
> Does anyone know if there is a general way to connect and query a
> postgresql database from within IDL using linux and os x? My group
> has a few linux licenses for 6.4/7.0 but I'm using an older version of
> the student version on my laptop (os x).
>
> Many thanks,
> Dave

Dave,

http://sdssidl.sourceforge.net/

and, in particular:

http://sdssidl.sourceforge.net/src/pgsql_query.c.html

might be helpful.

Thanks,

Allan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Statistics : T-test, P-value
Next Topic: Re: how to find name of top level program

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:48:29 PDT 2025

Total time taken to generate the page: 0.02591 seconds