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 1jKNXY-0002el-54 for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Apr 2020 14:43:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jKNXX-00037g-2Y for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Apr 2020 14:43:23 +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 1jKNXW-00037Z-S5 for pgsql-hackers@lists.postgresql.org; Fri, 03 Apr 2020 14:43:22 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jKNXU-0003iu-68 for pgsql-hackers@postgresql.org; Fri, 03 Apr 2020 14:43:21 +0000 Received: by mail-wr1-x441.google.com with SMTP id 65so8855224wrl.1 for ; Fri, 03 Apr 2020 07:43:19 -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=KVkXaxJp9d6uPPivqb9GUt1WuGyBiiXzHYtvggMfSiM=; b=IXf0QmWsDUlnYuGg96x5R7qgY0bXRrE07nyQ+VZ8/AkXcFmaJeJ+KzWhJFLZ9NNshF Kql7JH48VpM7g4KM6DZ0NjKi81H9P1THLByDn21zmP04alVO4SuW1S5wHgjBUdeAaWKR heGPt2v7ULszVrAKDuFPVSs0mLnb1kt+nK5msgnFqz9BGrsmVnP0H1g8w2RW2K7eHckU nKotOAGdroxOwBUd8bi2h7Y8ZwLIGcOdQgyinFIHHpxo+XxGcp0BjLQDHwg9YBOvGNAH qTJI3koYS+AK+cXjQK//9+SnC841zVP1q3VO92hFN9eaxZL+C5khUEQIwltZXBdywrlU owHg== 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=KVkXaxJp9d6uPPivqb9GUt1WuGyBiiXzHYtvggMfSiM=; b=AVA54UcadWWR9HF3RvA/pqaC31hyuLN8cJKHHd7WhZqqbYpJJS05W/EegFHZ+UNm+7 7Mi6oj3a+s2s3YZQHbfoxnAVy1xfpBDS035V4COLApzwZT2GHnPOGKJUFNX9n/9EQjSh 0UqqHajyjMghiFlYr/nozXE2EYWmYYvGBytbBT622S67+EURLxztD6ahyGslIZ8M/bjV wZYgH8Q7qkT6/MbKisJiepQTo6irBVJyKzeXZhGCmPelrgXOldpR1ZufDAUlMEEFHuOa TkratM6oPWiI2xlmgYZx5eujaaIN+4Z0+l5yN557xBtnHQ1xDKawffLtC2m4D13Z7i5p K2mA== X-Gm-Message-State: AGi0Pubc7fRozZRXvl0XXtPrJwGkpz/GV2koSYXYhmLySsDljamxl7Wa kj8Fug4ztjy5HI0GYWmxMlqqXNela8Mq459IAtEW7+gRyQu7zvANatD1Qb3SyI682zQi6Iu0xoq fBQXKC+ZfhcK649SP2hHTTzV2E2+a+1HdXuFDOYSo1NsDQUK4gvzmVw5VOi2L3/OALgNIAuei+E JW8TM= X-Google-Smtp-Source: APiQypIWWHLoKx5gVXudct8RnEgO+U3OL1sbcM5SJDWbkdDrGM7i3VWfV/gsNWN7UcK1eHaTSfidIA== X-Received: by 2002:adf:e282:: with SMTP id v2mr9417648wri.329.1585924998444; Fri, 03 Apr 2020 07:43:18 -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 p5sm12825663wrg.49.2020.04.03.07.43.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Apr 2020 07:43:17 -0700 (PDT) Subject: Re: adding partitioned tables to publications To: Amit Langote Cc: Peter Eisentraut , Rafia Sabih , PostgreSQL-development References: <4f999141-97c8-c968-a726-0a1ec3e36e47@2ndquadrant.com> From: Petr Jelinek Message-ID: <44ecae53-9861-71b7-1d43-4658acc52519@2ndquadrant.com> Date: Fri, 3 Apr 2020 16:43:17 +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: 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 Hi, On 03/04/2020 16:25, Amit Langote wrote: > On Fri, Apr 3, 2020 at 6:34 PM Amit Langote wrote: >> I am checking test coverage at the moment and should have the patches >> ready by sometime later today. > > Attached updated patches. > > I confirmed using a coverage build that all the new code in > logical/worker.c due to 0002 is now covered. For some reason, coverage > report for pgoutput.c doesn't say the same thing for 0003's changes, > although I doubt that result. It seems strange to believe that *none* > of the new code is tested. I even checked by adding debugging elog()s > next to the lines that the coverage report says aren't exercised, > which tell me that that's not true. Perhaps my coverage build is > somehow getting messed up, so it would be nice if someone with > reliable coverage builds can confirm one way or the other. I will > continue to check what's wrong. > 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). We'd probably have to do some kind of `GCOV_PREFIX` magic in the TAP framework and merge (gcov/lcov can do that AFAIK) the resulting files to get accurate coverage info. But that's beyond this patch IMHO. -- Petr Jelinek 2ndQuadrant - PostgreSQL Solutions for the Enterprise https://www.2ndQuadrant.com/