From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Joe Conway <mail@joeconway.com>
Cc: Mike Palmiotto <mike.palmiotto@crunchydata.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: partitioned tables and contrib/sepgsql
Date: Wed, 05 Apr 2017 10:45:06 -0400
Message-ID: <7761.1491403506@sss.pgh.pa.us> (raw)
In-Reply-To: <20170405142846.x3uchekhunbndpnl@alap3.anarazel.de>
References: <81ddcddc-b9f6-9d80-19c4-c9270fc71fd5@joeconway.com>
<CA+TgmoathxbFZyi1EphhRyLFKjHbTVDj-qT77FdkX9Vy1p_2Nw@mail.gmail.com>
<c188488f-b35c-25f0-4aac-08eff7a8c84a@joeconway.com>
<CAMN686E1x8wF7bASsh_9cB9+sG5vpWFxfnTwO8PskAPs-yaTmg@mail.gmail.com>
<426dde50-a6ef-d53c-0607-c0766afd6698@joeconway.com>
<3b0f0a27-0ccf-7298-5365-87d685eeea42@joeconway.com>
<CA+TgmoaKeXAChH8qgEAF03ejjMz5e_sDA91xr2UGmJXH8EH=RA@mail.gmail.com>
<19352.1491368287@sss.pgh.pa.us>
<20170405070249.4evvu3nkaujoqvmx@alap3.anarazel.de>
<5595.1491399833@sss.pgh.pa.us>
<20170405142846.x3uchekhunbndpnl@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Andres Freund <andres@anarazel.de> writes:
> On 2017-04-05 09:43:53 -0400, Tom Lane wrote:
>> Yeah, I was just thinking about that. The core problem though is that
>> we need the "bool" fields in the system catalog structs (or anyplace
>> else that it represents an on-disk bool datum) to be understood as
>> being 1 byte wide. I do not think we can assume that that's true of
>> every compiler's _Bool type. So we'd need some workaround for that.
>> There are probably other places such as isnull arrays where it'd be
>> wise to force the width to be 1 byte.
> I wonder if there's any compiler that has _Bool/stdbool.h where it's not
> 1 byte sized. It's definitely not guaranteed by the standard.
Hm. I'd supposed that it'd be pretty common to make _Bool be int-sized.
If it is char-sized almost everywhere, we could create a policy of
using stdbool.h unless configure sees that _Bool is not char-sized.
OTOH, that doesn't improve our existing situation that we have
platform-dependent semantics around "bool" (eg, what happens when
a non-char-sized value is assigned). It would just change which
one is the majority case, and not in a very safe direction :-(
>> In any case, that's a research project that's not getting done for v10.
> Agreed.
Yeah, it's off-topic for right now.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, robertmhaas@gmail.com, mail@joeconway.com, mike.palmiotto@crunchydata.com, sfrost@snowman.net
Subject: Re: partitioned tables and contrib/sepgsql
In-Reply-To: <7761.1491403506@sss.pgh.pa.us>
References: <81ddcddc-b9f6-9d80-19c4-c9270fc71fd5@joeconway.com> <CA+TgmoathxbFZyi1EphhRyLFKjHbTVDj-qT77FdkX9Vy1p_2Nw@mail.gmail.com> <c188488f-b35c-25f0-4aac-08eff7a8c84a@joeconway.com> <CAMN686E1x8wF7bASsh_9cB9+sG5vpWFxfnTwO8PskAPs-yaTmg@mail.gmail.com> <426dde50-a6ef-d53c-0607-c0766afd6698@joeconway.com> <3b0f0a27-0ccf-7298-5365-87d685eeea42@joeconway.com> <CA+TgmoaKeXAChH8qgEAF03ejjMz5e_sDA91xr2UGmJXH8EH=RA@mail.gmail.com> <19352.1491368287@sss.pgh.pa.us> <20170405070249.4evvu3nkaujoqvmx@alap3.anarazel.de> <5595.1491399833@sss.pgh.pa.us> <20170405142846.x3uchekhunbndpnl@alap3.anarazel.de> <7761.1491403506@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