From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Joe Conway <mail(at)joeconway(dot)com> |
Cc: | Kris Jurka <books(at)ejurka(dot)com>, "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: [BUGS] casting strings to multidimensional arrays yields strange results |
Date: | 2004-08-05 04:19:40 |
Message-ID: | 14225.1091679580@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers pgsql-patches |
Joe Conway <mail(at)joeconway(dot)com> writes:
> While looking at it the last day or so, I started to think it might be
> better to use bison to parse array literals -- or is that a bad idea?
Offhand it doesn't seem like a super-appropriate tool. Once you get
past the lexical details like quoting, the syntax of array literals
is not complicated enough to need a bison parser. Also, the issues
you're facing now like enforcing consistent dimensions are not amenable
to solution by a context-free grammar --- so you'd still need most of
the dimension-checking mechanisms.
There might be something out there that is more useful, but I dunno
what.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2004-08-05 06:01:06 | Re: [BUGS] casting strings to multidimensional arrays yields strange |
Previous Message | Joe Conway | 2004-08-05 04:07:39 | Re: [BUGS] casting strings to multidimensional arrays yields strange |
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2004-08-05 04:37:12 | Re: DROP TABLESPACE causes panic during recovery |
Previous Message | Tom Lane | 2004-08-05 04:08:30 | Re: DROP TABLESPACE causes panic during recovery |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Glaesemann | 2004-08-05 05:42:49 | Re: Epoch to timestamp conversion function patch |
Previous Message | Joe Conway | 2004-08-05 04:07:39 | Re: [BUGS] casting strings to multidimensional arrays yields strange |