X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 93E78D1B42F for ; Sun, 28 Dec 2003 09:56:58 +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 48159-02 for ; Sun, 28 Dec 2003 05:56:10 -0400 (AST) Received: from svana.org (svana.org [203.20.62.76]) by svr1.postgresql.org (Postfix) with ESMTP id 1ADEBD1B430 for ; Sun, 28 Dec 2003 05:56:08 -0400 (AST) Received: from kleptog by svana.org with local (Exim 3.35 #1 (Debian)) id 1AaXeZ-00071e-00; Sun, 28 Dec 2003 20:56:07 +1100 Date: Sun, 28 Dec 2003 20:56:07 +1100 From: Martijn van Oosterhout To: Casey Allen Shobe Cc: pgsql-general@postgresql.org Subject: Re: Is my MySQL Gaining ? Message-ID: <20031228095607.GC21488@svana.org> Reply-To: Martijn van Oosterhout Mail-Followup-To: Casey Allen Shobe , pgsql-general@postgresql.org References: <200312280242.20636.cshobe@softhome.net> <20031228075744.GB21488@svana.org> <200312280429.56751.cshobe@softhome.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uXxzq0nDebZQVNAZ" Content-Disposition: inline In-Reply-To: <200312280429.56751.cshobe@softhome.net> User-Agent: Mutt/1.3.28i X-PGP-Key-ID: Length=1024; ID=0x0DC67BE6 X-PGP-Key-Fingerprint: 295F A899 A81A 156D B522 48A7 6394 F08A 0DC6 7BE6 X-PGP-Key-URL: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/1355 X-Sequence-Number: 54748 --uXxzq0nDebZQVNAZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 28, 2003 at 04:29:56AM -0500, Casey Allen Shobe wrote: > Martijn van Oosterhout (Sunday 28 December 2003 02:57) > > Yes, they do vary, there is no stardard. As you point out, DB2 and MySQL > > use different commands, as does probably every other database. There is= no > > command that is going to work everywhere. >=20 > That's not what I meant. I mean that they *only* work in the psql client= , not=20 > when using PostgreSQL via ODBC or another interface. Hmm, I see. Obviously you could use the -E option to get the queries but it= 's not the same I grant you. SQL now defines an INFORMATION_SCHEMA, maybe that will bring some method to the madness. > > psql has variables, though I can't comment on how they compare to MSSQL= 's. >=20 > Do you happen to have a link to documentation? If these aren't new, then= I've=20 > just somehow overlooked it. I'd love to read further... Interesting, I found them in psql's manpage under ADVANCED FEATURES - VARIABLES. Let's see if I can find it on the web... Here's a web version of the manpage. http://www.postgresql.org/docs/current/interactive/app-psql.html They're not in the backend though, though I'm not sure why you'd want that. Ofcourse, pl/pgsql has variables as do all the other languages. Hope this helps, --=20 Martijn van Oosterhout http://svana.org/kleptog/ > (... have gone from d-i being barely usable even by its developers > anywhere, to being about 20% done. Sweet. And the last 80% usually takes > 20% of the time, too, right?) -- Anthony Towns, debian-devel-announce --uXxzq0nDebZQVNAZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/7qi3Y5Twig3Ge+YRAknmAJ40C5r+/LIVeCCxCZASW4zfHKirdwCgqtkC BCPSLkNo49ow+rCVBzgNz1M= =wqEI -----END PGP SIGNATURE----- --uXxzq0nDebZQVNAZ--