pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rafi Shamim <rafiss@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Jerry Sievert <jerry@legitimatesounding.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16804: substring() function returns "negative substring length" error when using a large length argument
Date: Mon, 04 Jan 2021 17:28:11 -0500
Message-ID: <3321781.1609799291@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEMd-tkAqL=KCZkH78NJ3Vc1gTzz2h6h==rmoYHh_0iwFZ3Y1w@mail.gmail.com>
References: <16804-f4eeeb6c11ba71d4@postgresql.org>
	<CAFj8pRC8VwazNN9G=oOt7E=kxpCwjE9pu8Hx0ku6-FJxAJYRRA@mail.gmail.com>
	<018A6952-DDF4-4728-AA47-A819CC6DB2CB@legitimatesounding.com>
	<CAFj8pRCuBWsi=Hf3pmbN8kJHu+y+O8-Hn+XEp_R7Yn3TOQBj0A@mail.gmail.com>
	<3219376.1609795681@sss.pgh.pa.us>
	<CAEMd-tkAqL=KCZkH78NJ3Vc1gTzz2h6h==rmoYHh_0iwFZ3Y1w@mail.gmail.com>

Rafi Shamim <rafiss@gmail.com> writes:
> I forgot to include this in my original bug report, but the bytea substring
> function (which has a separate implementation in varlena.c) is also
> affected.

Um.  And I bet the "bit" variant as well ...

			regards, tom lane





view thread (7+ messages)

Message-ID: <3321781.1609799291@sss.pgh.pa.us>
Permalink:  ../3321781.1609799291@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3321781.1609799291@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rafiss@gmail.com, pavel.stehule@gmail.com, jerry@legitimatesounding.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16804: substring() function returns "negative substring length" error when using a large length argument
  In-Reply-To: <3321781.1609799291@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox