Re: [SQL] array_in: '{}}'::text[] - Mailing list pgsql-patches

From Joe Conway
Subject Re: [SQL] array_in: '{}}'::text[]
Date
Msg-id 41310A17.5020405@joeconway.com
Whole thread Raw
In response to Re: [SQL] array_in: '{}}'::text[]  (Markus Bertheau <twanger@bluetwanger.de>)
List pgsql-patches
Markus Bertheau wrote:
>
> Without looking at the code in a whole, you accept '{} ' as an empty
> array literal, so why is the special case for '{}' needed here?

It's a fast path for a common special case. Why spend any cycles parsing
if we can immediately recognize it? However, anything other than a
simple '{}' does require parsing.

Joe

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [pgsql-hackers-win32] Service startup delay
Next
From: Bruce Momjian
Date:
Subject: Re: [BUGS] BUG #1219: pgxs does not work fully