range_agg - Mailing list pgsql-hackers

From Zhihong Yu
Subject range_agg
Date
Msg-id CALNJ-vSUpQ_Y=jXvTxt1VYFztaBSsWVXeF1y6gTYQ4bOiWDLgQ@mail.gmail.com
Whole thread Raw
Responses Re: range_agg
List pgsql-hackers
Hi,
w.r.t. patch v27.

+    * The idea is to prepend underscores as needed until we make a name that
+    * doesn't collide with anything ...

I wonder if other characters (e.g. [a-z0-9]) can be used so that name without collision can be found without calling truncate_identifier().

+       else if (strcmp(defel->defname, "multirange_type_name") == 0)
+       {
+           if (multirangeTypeName != NULL)
+               ereport(ERROR,
+                       (errcode(ERRCODE_SYNTAX_ERROR),
+                        errmsg("conflicting or redundant options")));

Maybe make the error message a bit different from occurrences of similar error message (such as including multirangeTypeName) ?

Thanks

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Proposed patch for key managment
Next
From: Alexander Korotkov
Date:
Subject: Re: range_agg