Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKb1t-00085b-SV for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2020 05:07:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jKb1r-00038j-RH for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Apr 2020 05:07:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKb1r-00038c-K9 for pgsql-hackers@lists.postgresql.org; Sat, 04 Apr 2020 05:07:35 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jKb1o-00025O-Tw for pgsql-hackers@postgresql.org; Sat, 04 Apr 2020 05:07:34 +0000 Received: by mail-wm1-x331.google.com with SMTP id z7so9148495wmk.1 for ; Fri, 03 Apr 2020 22:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9zXrnn3XcoeKCnb+yu/YTGeTqn2jfOBDClsNnXaeDw0=; b=NZlRk7AFRhDR1NzGCmx3XuIuRdYGLq0SaQTuNC13/HB2MYc+jLuEMB/65zDMYi+Ep6 nYFu4a6sFTRGQu2oRIFT/YLvjZtiQPu3qQoPh1pfILE11frk3OVnsQmvUGacvvN6kcYU AZG1WjQzwB+PVKKHYGPh5x9AdD+qsxEuLFj9wbg079FbjL4WBUX9UWYG24bQCCbPuFXE g1yiflYQQJe5tVMMNi9gp9+oatOa97e0aKZG7qYYtOIwf+9g71eDicC2AELOxJwmeHPr /WOlIze/NuUDPdB4b9HTdwKQ8yMWySXqPYcWQLLsG/YiwlZaEHt8x7uPjvGXznGPbnf1 3y3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9zXrnn3XcoeKCnb+yu/YTGeTqn2jfOBDClsNnXaeDw0=; b=JbaTWTh2QAr3LWrrmgF/8qCKlAIVv3qqz2kGb99UBlR/CTh5OYuKRH2+L9KdobnzH0 RrPMs9eEPQSMqY0OpOqmsdXDq0x1r8iIw34x7Rw8ZLbeSgXSH1ypyxiP8lI5E0Wpj4v1 +2eTsqJxQy9fL8T9XN3c6O+GIYT/YvVkzNCp2cKGexFuWg729VU1q4UIGloXNHY7xL6p uiI3AhU/AwNeh9cBuGnCvdQUPgZ7zw9tiNOwmANCwngVwT09AkyJja6Zvts+74XwZ7Ju MlsZxGOTH4hNivGjoOWRQjG6UQpiWJLKTZpZFBBVU/H9fHKg8SnJbBqC8DuE0C2t8jrd ztlw== X-Gm-Message-State: AGi0PuZSIHVm0RfEWCE//vO2akV7jW/e3NbFKzHcalMEeEmYzFx/+gIi hZOWlTC4W56LiiQIbtMZZ/lsHs7Bne+tF9zQpWgOxMFcLW3DuejwNAo0OEd+oCZv+/Tdi5lHuxj L6Cd1RM84xJtdw1DYBLFMRCU8x9fySL62nfxcckD7KXhMZvSmz+MLqS0VmqRG/GmLmmMasfjPYT nWG1VtVQ== X-Google-Smtp-Source: APiQypL+ei39fzlNqvlonV9aZJyD5FQXdXzJKqKluGOA+doQA2a4DvBpmG5OvW1yKuaowyiPN8V/xQ== X-Received: by 2002:a1c:6503:: with SMTP id z3mr1705647wmb.92.1585976850608; Fri, 03 Apr 2020 22:07:30 -0700 (PDT) Received: from ?IPv6:2a02:8308:13b:9400:c4bc:d2a3:915a:f059? ([2a02:8308:13b:9400:c4bc:d2a3:915a:f059]) by smtp.gmail.com with ESMTPSA id e23sm3893720wra.43.2020.04.03.22.07.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Apr 2020 22:07:30 -0700 (PDT) Subject: Re: adding partitioned tables to publications To: Tom Lane Cc: Amit Langote , Peter Eisentraut , Rafia Sabih , PostgreSQL-development References: <4f999141-97c8-c968-a726-0a1ec3e36e47@2ndquadrant.com> <44ecae53-98! 61-71b7-1d43-4658acc52519@2ndquadrant.com> <5183.1585925998@sss.pgh! .pa.us> <9684.1585929105@sss.pgh.pa.us> From: Petr Jelinek Message-ID: <63961884-6d56-a12b-d3f5-9a5dcbcc37f4@2ndquadrant.com> Date: Sat, 4 Apr 2020 07:07:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <9684.1585929105@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 03/04/2020 17:51, Tom Lane wrote: > Petr Jelinek writes: >> On 03/04/2020 16:59, Tom Lane wrote: >>> Petr Jelinek 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/