Re: adding partitioned tables to publications

From: Petr Jelinek <petr(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Amit Langote <amitlangote09(at)gmail(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Rafia Sabih <rafia(dot)pghackers(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: adding partitioned tables to publications
Date: 2020-04-04 05:07:29
Message-ID: 63961884-6d56-a12b-d3f5-9a5dcbcc37f4@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 03/04/2020 17:51, Tom Lane wrote:
> Petr Jelinek <petr(at)2ndquadrant(dot)com> writes:
>> On 03/04/2020 16:59, Tom Lane wrote:
>>> Petr Jelinek <petr(at)2ndquadrant(dot)com> writes:
>>>> AFAIK gcov can't handle multiple instances of same process being started
>>>> as it just overwrites the coverage files. So for TAP test it will report
>>>> bogus info (as in some code that's executed will look as not executed).
>
>>> Hm, really? I routinely run "make check" (ie, parallel regression
>>> tests) under coverage, and I get results that seem sane. If I were
>>> losing large chunks of the data, I think I'd have noticed.
>
>> Parallel regression still just starts single postgres instance no?
>
> But the forked-off children have to write the gcov files independently,
> don't they?
>

Hmm that's very good point. I did see these missing coverage issue when
running tests that explicitly start more instances of postgres before
though. And with some quick googling, parallel testing seems to be issue
with gcov for more people.

I wonder if the program checksum that gcov calculates when merging the
.gcda data while updating it is somehow different for separately started
instances but not for the ones forked from same parent or something. I
don't know internals of gcov well enough to say how exactly that works.

--
Petr Jelinek
2ndQuadrant - PostgreSQL Solutions for the Enterprise
https://www.2ndQuadrant.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2020-04-04 05:08:14 Re: WAL usage calculation patch
Previous Message Petr Jelinek 2020-04-04 05:01:36 Re: backup manifests and contemporaneous buildfarm failures