From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: pgsql: Clone extended stats in CREATE TABLE (LIKE INCLUDING ALL)
Date: Mon, 5 Mar 2018 23:53:15 -0300
Message-ID: <20180306025315.ubtz35byjk3qtza5@alvherre.pgsql> (raw)
In-Reply-To: <CAEepm=0mJgDJed7znX=dNkkSVrTbzbYkxhywtUi84n6kPRRAqA@mail.gmail.com>
Thomas Munro wrote:
> On Tue, Mar 6, 2018 at 11:39 AM, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> > Clone extended stats in CREATE TABLE (LIKE INCLUDING ALL)
>
> Is this commit responsible for this valgrind error?
>
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=lousyjack&dt=2018-03-05%2023%3A03%3A01
>
> ==430== Invalid read of size 2
> ==430== at 0x4C33F6F: memcpy@GLIBC_2.2.5 (vg_replace_strmem.c:1021)
> ==430== by 0x483419: heap_fill_tuple (heaptuple.c:276)
> ==430== by 0x4842C6: heap_form_tuple (heaptuple.c:771)
> ==430== by 0x6474B5: CreateStatistics (statscmds.c:322)
> ==430== by 0x865784: ProcessUtilitySlow (utility.c:1668)
Uh ... it probably is. I'll take a look tomorrow, but my guess is that
my last minute removal of the conversion to Name is to blame.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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-committers@postgresql.org
Cc: alvherre@alvh.no-ip.org, thomas.munro@enterprisedb.com, pgsql-hackers@postgresql.org
Subject: Re: pgsql: Clone extended stats in CREATE TABLE (LIKE INCLUDING ALL)
In-Reply-To: <20180306025315.ubtz35byjk3qtza5@alvherre.pgsql>
References: <CAEepm=0mJgDJed7znX=dNkkSVrTbzbYkxhywtUi84n6kPRRAqA@mail.gmail.com> <20180306025315.ubtz35byjk3qtza5@alvherre.pgsql>
* 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