Re: pgsql: Clone extended stats in CREATE TABLE (LIKE INCLUDING ALL) - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pgsql: Clone extended stats in CREATE TABLE (LIKE INCLUDING ALL)
Date
Msg-id 20180306025315.ubtz35byjk3qtza5@alvherre.pgsql
Whole thread Raw
Responses Re: pgsql: Clone extended stats in CREATE TABLE (LIKE INCLUDING ALL)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Kerberos test suite
Next
From: Yugo Nagata
Date:
Subject: Re: [PATCH] GET DIAGNOSTICS FUNCTION_NAME