| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
|---|---|
| To: | Andrew Dunstan <andrew(at)dunslane(dot)net> | 
| Cc: | bouda(at)edookit(dot)com, pgsql-bugs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org | 
| Subject: | Re: [HACKERS] BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON | 
| Date: | 2014-11-30 16:45:00 | 
| Message-ID: | 9580.1417365900@sss.pgh.pa.us | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-bugs pgsql-hackers | 
Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> what do you want to do about this? In the back branches, exposing a 
> function like this would be an API change, wouldn't it? Perhaps there we 
> just need to pick up the 100 lines or so involved from json.c and copy 
> them into hstore_io.c, suitably modified. In the development branch I 
> thing adding the function to the API is the best way.
If we're going to do it by calling some newly-exposed function, I'd be
inclined to fix it the same way in the back branches.  Otherwise the
discrepancy between the branches is a big back-patching hazard.
(For instance, if we realize we need to fix a bug in the numeric-parsing
code, what are the odds that we remember to fix hstore's additional copy
in the back branches?)
The "API break" isn't a big issue imo.  The net effect would be that eg
hstore 9.3.6 wouldn't work against a 9.3.5 server.  We do that sort of
thing *all the time* --- at least twice in the past year, according to
a quick scan of the commit logs.  If you were changing or removing a
function that third-party code might depend on, it'd be problematic,
but an addition has no such risk.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David G Johnston | 2014-11-30 17:38:51 | Re: BUG #12106: pg_dump does not resolve circular dependency | 
| Previous Message | Tom Lane | 2014-11-30 16:31:14 | Re: BUG #12106: pg_dump does not resolve circular dependency | 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2014-11-30 17:51:24 | Re: Removing INNER JOINs | 
| Previous Message | Andrew Dunstan | 2014-11-30 16:03:16 | Re: [BUGS] BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON |