Re: Patch: Allow substring/replace() to get/set bit values - Mailing list pgsql-hackers

From Leonardo F
Subject Re: Patch: Allow substring/replace() to get/set bit values
Date
Msg-id 250592.50414.qm@web29009.mail.ird.yahoo.com
Whole thread Raw
In response to Re: Patch: Allow substring/replace() to get/set bit values  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Patch: Allow substring/replace() to get/set bit values  (Robert Haas <robertmhaas@gmail.com>)
Re: Patch: Allow substring/replace() to get/set bit values  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> Thanks!  Please add your patch here:
>
> https://commitfest.postgresql.org/action/commitfest_view/open
>


Ok; but what about what I said about the difference between bit/string substring?
That affects overlay behaviour for bit...


I've even got

"ERROR:  invalid memory alloc request size 4244635647"

with:


SELECT substring(B'1111000000000001' from 5 for -2);

(this is 8.4.2, windows version, not modified...)



test=# SELECT substring(B'1111000000000001' from 1 for -1);
substring
------------------
1111000000000001
(1 row)


test=# SELECT substring('1111000000000001' from 1 for -1);
ERROR:  negative substring length not allowed





pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: unresolved bugs
Next
From: Marko Tiikkaja
Date:
Subject: Re: Testing with concurrent sessions