pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Amit Langote <amitlangote09@gmail.com>
Cc: digoal@126.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #16302: too many range table entries - when count partition table(65538 childs)
Date: Thu, 19 Mar 2020 12:04:21 +0100
Message-ID: <54912a3b-fec1-eb85-4971-46de1a1d0f5e@2ndquadrant.com> (raw)
In-Reply-To: <CA+TgmoaM2xy09C67OM8nUSAZU2Dn5E6nTJUko8pr0=fHu4Z84g@mail.gmail.com>
References: <16302-e45634e2c0e34e97@postgresql.org>
	<32763.1584198185@sss.pgh.pa.us>
	<CA+HiwqFZRY=t9jzgbMq5aiKSLWsAj_XhycpULY_PY2W65_cLNw@mail.gmail.com>
	<28094.1584326310@sss.pgh.pa.us>
	<CA+TgmoZoqQvYD5TmyzQGHw2HxmugLJ18j0wNPOJ9yUqYc=iy7g@mail.gmail.com>
	<31331.1584452939@sss.pgh.pa.us>
	<CA+TgmoanuqV8bFRjGeWoNFNZfQJOwYq04DQ6gsLh5VzC-D2thw@mail.gmail.com>
	<1032.1584456128@sss.pgh.pa.us>
	<CA+TgmoaM2xy09C67OM8nUSAZU2Dn5E6nTJUko8pr0=fHu4Z84g@mail.gmail.com>

On 2020-03-17 16:04, Robert Haas wrote:
>>> (It doesn't seem like we're all that careful about whether we're using
>>> int, which is signed, or Index, which is unsigned, and we might want
>>> to go around and tighten that up.
>>
>> Yeah, I'd be leery of trying to use that last bit.  The cost-benefit
>> ratio on that is *definitely* not attractive.
> 
> That seems clear, but trying to be consistent about the types we use
> for things is a good idea on general principle, even if we have no
> intention of doing anything that really relies on it any time in the
> forseeable future. If nothing else, it might avoid some compiler
> warnings.

You could make INNER_VAR -1 and so on.  Then it would probably break 
quite clearly if it's not signedness clean.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (12+ messages)  latest in thread

Message-ID: <54912a3b-fec1-eb85-4971-46de1a1d0f5e@2ndquadrant.com>
Permalink:  ../54912a3b-fec1-eb85-4971-46de1a1d0f5e@2ndquadrant.com/
Also on:    postgresql.org/message-id/54912a3b-fec1-eb85-4971-46de1a1d0f5e@2ndquadrant.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, amitlangote09@gmail.com
  Subject: Re: BUG #16302: too many range table entries - when count partition table(65538 childs)
  In-Reply-To: <54912a3b-fec1-eb85-4971-46de1a1d0f5e@2ndquadrant.com>
  References: <16302-e45634e2c0e34e97@postgresql.org> <32763.1584198185@sss.pgh.pa.us> <CA+HiwqFZRY=t9jzgbMq5aiKSLWsAj_XhycpULY_PY2W65_cLNw@mail.gmail.com> <28094.1584326310@sss.pgh.pa.us> <CA+TgmoZoqQvYD5TmyzQGHw2HxmugLJ18j0wNPOJ9yUqYc=iy7g@mail.gmail.com> <31331.1584452939@sss.pgh.pa.us> <CA+TgmoanuqV8bFRjGeWoNFNZfQJOwYq04DQ6gsLh5VzC-D2thw@mail.gmail.com> <1032.1584456128@sss.pgh.pa.us> <CA+TgmoaM2xy09C67OM8nUSAZU2Dn5E6nTJUko8pr0=fHu4Z84g@mail.gmail.com> <54912a3b-fec1-eb85-4971-46de1a1d0f5e@2ndquadrant.com>

* 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