Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 03C5363278C for ; Thu, 25 Mar 2010 00:21:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 15876-03 for ; Thu, 25 Mar 2010 03:20:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f186.google.com (mail-iw0-f186.google.com [209.85.223.186]) by mail.postgresql.org (Postfix) with ESMTP id 5946C63161C for ; Thu, 25 Mar 2010 00:20:54 -0300 (ADT) Received: by iwn16 with SMTP id 16so6682iwn.28 for ; Wed, 24 Mar 2010 20:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=uy+r2j0pnLgu/fec4DgvpI5o3Jpbx06b+Z6SP3ksHrg=; b=j7o64dPciJvyYXXuFg7Kl6zLVdk0QiqITeCWo4V4dzNEQql32CPqMsT8XHw38ugoa9 DAnk4nIpCBi72uEa7QfNAxfZaoPk2/i06WpiG/sau4YY4k1bp1kpfuOnVAZt+JoF78sl 2k5zflfMJEttdTasVE3p4vTFvedVYh9b+Yfnw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=fxW9pF8rRFbUOKg21yjRPoL56+nUf5biGJsbZWL7PSCvECNvw6J7TGMkS0BJtq23wI ML+UY1i0ZEJx0f3LUdonITPKfuCo5JhTtk6bbE0CZY2yHwNpC61FJMDlEFYzeqIobeqz zkCfIX6mcZ1KankQGHfUP3vNVRXrTUii7aoGc= MIME-Version: 1.0 Received: by 10.231.183.203 with SMTP id ch11mr295327ibb.47.1269487251614; Wed, 24 Mar 2010 20:20:51 -0700 (PDT) In-Reply-To: <27234E40-2601-43F2-8321-5D3ED37A21F6@numericable.fr> References: <20100324140832.GA5864@apartia.fr> <4ec1cf761003241213p26d5bccesdaf5283dda2725ca@mail.gmail.com> <27234E40-2601-43F2-8321-5D3ED37A21F6@numericable.fr> Date: Wed, 24 Mar 2010 23:20:51 -0400 Message-ID: <3f0fe3d21003242020u3bfbb07kcfe7d0fcccff3755@mail.gmail.com> Subject: Re: Dollar quoted strings From: Robert Manning To: John Gage Cc: Josh Kupershmidt , pgsql-sql@postgresql.org, squirrel-sql-users@lists.sourceforge.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/194 X-Sequence-Number: 33901 Hi John, The type code 2003 indicates an SQL99 column type of ARRAY, which is not currently supported for rendering/editing. Here is the feature request for SQuirreL SQL Client to track this feature: https://sourceforge.net/tracker/?func=3Ddetail&aid=3D2972937&group_id=3D283= 83&atid=3D393417 Rob On Wed, Mar 24, 2010 at 4:38 PM, John Gage wrote: > Thanks very much for this. =A0I am using 8.4.2. > > This query works as you describe in pgAdmin. > > I had tried it in the SquirrelSQL client, which is where it produced the > > > > result. > > Obviously, this is a SquirrelSQL problem at least in part. > > What does mean? > > Thanks again for directing me to the doc's on dollar quoting. > > John > > > On Mar 24, 2010, at 8:13 PM, Josh Kupershmidt wrote: > >> On Wed, Mar 24, 2010 at 2:38 PM, John Gage wrote: >>> >>> In going through the arcana of string functions, I have come across the >>> following series of selects that contain, for me, a mysterious "$re$". >>> >>> -- return all matches from regexp >>> SELECT regexp_matches('foobarbequebaz', $re$(bar)(beque)$re$); >> >> The $re$ is just an arbitrary identifier for a dollar-quoted string >> constant. See: >> >> http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html >> >> Maybe you're on an old version which doesn't support dollar-quoted >> strings? >> >> On 8.3 for the above query, I get: >> >> SELECT regexp_matches('foobarbequebaz', $re$(bar)(beque)$re$); >> regexp_matches >> ---------------- >> {bar,beque} >> (1 row) >> >> Josh > >