Re: [sqlsmith] Infinite recursion in bitshift - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [sqlsmith] Infinite recursion in bitshift
Date
Msg-id 30869.1476477854@sss.pgh.pa.us
Whole thread Raw
In response to Re: [sqlsmith] Infinite recursion in bitshift  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-hackers
Merlin Moncure <mmoncure@gmail.com> writes:
> On Fri, Oct 14, 2016 at 3:31 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Poking around in varbit.c, I noticed some other places that were assuming
>> that a typmod couldn't exceed VARBITMAXLEN.

> Curious -- are there real world scenarios where this would happen?

I think you'd have to be intentionally trying to break it.  The largest
varbit typmod you're allowed to declare normally is only ~ 80 million.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: [sqlsmith] Infinite recursion in bitshift
Next
From: Corey Huinker
Date:
Subject: Re: COPY as a set returning function