X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9DDCDD1B507 for ; Thu, 13 Nov 2003 04:48:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 51847-04 for ; Thu, 13 Nov 2003 00:47:44 -0400 (AST) Received: from candle.pha.pa.us (unknown [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 0436AD1B504 for ; Thu, 13 Nov 2003 00:47:43 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id hAD4ldZ23273; Wed, 12 Nov 2003 23:47:39 -0500 (EST) From: Bruce Momjian Message-Id: <200311130447.hAD4ldZ23273@candle.pha.pa.us> Subject: Re: [GENERAL] Postgres 7.4 : ECPG not Thread-safe In-Reply-To: <200311131535.31388.philip@utiba.com> To: Philip Yarra Date: Wed, 12 Nov 2003 23:47:39 -0500 (EST) Cc: PostgreSQL-interfaces X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/18 X-Sequence-Number: 4576 Philip Yarra wrote: > On Thu, 13 Nov 2003 03:16 pm, Bruce Momjian wrote: > > Interfaces list, where is there detailed ecpg documentaiton, like > > documentation on the AT clause? > > I'm willing to have a go at updating the doco. Can someone point me to a guide > to getting started with the markup we use? Great, but be warned --- the work is huge. Basically, ecpg is a full ANSI SQL-standard C interface to PostgreSQL. It is the only ANSI standard application interface we support, I think. Let me also add that it is totally cool! It doesn't look all that friendly, but once you start coding in it, and pass variables in and out of queries, it takes on amazing power and has amazing clarity. If I was coding an app in C, it would be the interface I would use. libpq requires just too much house-cleaning for me. Anyway, I think you can grab any ANSI SQL enbedded document and get ideas. You can look at vendors docs because those are going to be very similar, and you can look at the ANSI standard for ideas. Of course, check out what you see against our existing grammer to be sure we support it, but once you are done, I think you could create a document that really shows the power of ecpg --- right now, our docs don't do it justice. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073