Skip site navigation (1) Skip section navigation (2)

RE: RE[2]: [INTERFACES] ecpg and getting just assigned serial nu

From: Craig Orsinger <orsingerc(at)epg-gw1(dot)lewis(dot)army(dot)mil>
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: RE: RE[2]: [INTERFACES] ecpg and getting just assigned serial nu
Date: 1999-09-15 18:21:55
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfacespgsql-sql
On 13-Sep-99 Theofilu Andreas wrote:
>> to do. Anything else and it gets really difficult. While Informix
>> supports EXEC SQL IFDEF, PostgreSQL does not appear to.
> It is not always easy to do that and the two are different, but not
> completely. However. I use a special preprocessor (lwpp [look at freshmeat
> for it]) to create an embedded C file for PostgreSQL 'ecpg' or Informix
> 'esqlc'. I think this is the better way. Having two source trees would mean
> to do everything twice and if I forget something I have two incompatible
> programs.

        I downloaded this program and tried it out. It definitely
has possibilities. I especially like its flexible prefix feature,
which should make it possible to use for source files in just 
about any language. You could use this, for instance, to pre-process
SQL scripts for different DBMSs. I've been doing stuff like this
using sed scripts in makefiles, and I can tell you I'd much rather
do it this way.

        Thanks for the tip.

Date: 15-Sep-99  Time: 11:10:52

Craig Orsinger                  (email: <orsingerc(at)epg-gw1(dot)lewis(dot)army(dot)mil>)
Logicon RDA
Bldg. 8B28                      "Just another megalomaniac with ideas above his
6th & F Streets                 station. The Universe is full of them."
Ft. Lewis, WA   98433                   - The Doctor

In response to

pgsql-interfaces by date

Next:From: Len MorganDate: 1999-09-17 02:01:15
Subject: ODBC Question
Previous:From: Margarita BarvinokDate: 1999-09-15 13:02:29
Subject: Re: [INTERFACES] Transaction: Begin, Lock

pgsql-sql by date

Next:From: Remigiusz SokolowskiDate: 1999-09-16 11:24:20
Subject: How improve such query?
Previous:From: St├ęphane FILLONDate: 1999-09-15 16:17:27

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group