pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Dmitry Dolgov <9erthalion6@gmail.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Vincent Lachenal <vincent.lachenal@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14897: Segfault on statitics SQL request
Date: Sun, 12 Nov 2017 12:43:02 -0500
Message-ID: <3379.1510508582@sss.pgh.pa.us> (raw )
In-Reply-To: <9597.1510428707@sss.pgh.pa.us >
References: <CA+q6zcXe9aV5NV88u9Y=vMp+=fP7QOXgTyFQhzuvmCvTBvb_kQ@mail.gmail.com >
<17617.1510355215@sss.pgh.pa.us >
<CAB7nPqR7mWvtnALZF93oez_v03NFCJ8dXP9CNicaUDv3KjDbYw@mail.gmail.com >
<CA+q6zcVE2FQ9irhENEy=2WjRWgV2hyzfYyOXFs36w=hsk4faBw@mail.gmail.com >
<644.1510418216@sss.pgh.pa.us >
<CA+q6zcWwjTNgA6JiqQ5L-oAFF5X9ONtKSAvznte63A7Zb7zaww@mail.gmail.com >
<20171111171620.td6vtnmijcloj6k5@alap3.anarazel.de >
<3914.1510422100@sss.pgh.pa.us >
<20171111174512.ikd3zrx2i5ssxpww@alap3.anarazel.de >
<4612.1510422869@sss.pgh.pa.us >
<20171111181145.lo54au5awq3ib2nh@alap3.anarazel.de >
<9597.1510428707@sss.pgh.pa.us >
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
I wrote:
> Andres Freund <andres@anarazel.de> writes:
>> Specifying MCXT_ALLOC_ALIGN_CACHELINE rather than CACHELINE_ALIGNMENT
>> doesn't seem to make it meaningfully harder to adjust. Or are you
>> thinking of probing the hardware?
> Yeah, the latter. The two approaches seem pretty much equivalent if
> you're assuming compile-time decisions, but if we ever wanted a run-
> time decision, I think having a flag bit that's interpreted inside
> MemoryContextAllocExtended would be easier to deal with.
Actually, independently of which way we do that, it seems like we can't
easily hide this inside a palloc wrapper. If we palloc some extra space
and then adjust the return value to be 16-aligned, what happens when the
caller tries to pfree the block?
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
view thread (39+ messages) latest in thread
Message-ID: <3379.1510508582@sss.pgh.pa.us>
Permalink: ../3379.1510508582@sss.pgh.pa.us/
Also on: postgresql.org/message-id/3379.1510508582@sss.pgh.pa.us
copy link · copy postgr.es
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, andres@anarazel.de, 9erthalion6@gmail.com, michael.paquier@gmail.com, vincent.lachenal@gmail.com
Subject: Re: BUG #14897: Segfault on statitics SQL request
In-Reply-To: <3379.1510508582@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