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 1kFI9Q-000446-N7 for pgsql-committers@arkaria.postgresql.org; Mon, 07 Sep 2020 14:29:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kFI9P-0006sA-Lf for pgsql-committers@arkaria.postgresql.org; Mon, 07 Sep 2020 14:29:43 +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 1kFI9P-0006s3-BX for pgsql-committers@lists.postgresql.org; Mon, 07 Sep 2020 14:29:43 +0000 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kFI9L-0002go-7m for pgsql-committers@lists.postgresql.org; Mon, 07 Sep 2020 14:29:42 +0000 Received: by mail-qv1-xf44.google.com with SMTP id di5so6412101qvb.13 for ; Mon, 07 Sep 2020 07:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=rSs5jPn1jrSKdQBZwhHKvkvHpOcxTiAynX2UA6oZGGw=; b=o7ePxTZl+o+k3o606Joh5XqW89+wUgnJiVpcdd0+k/H4TrPUfG7LoOXjCOsqVrZE1O PeZfkHh8HhkN8YyXkj94LSx0kL1SbBr4zlWbVBUZ09m9+x7c+YkjPJfJWmyQESXMw24d LuFUvJVLGgUuLNt6HDHEwN+6gKtvGsnP9mmsRIa17J+0HC+B4VsVeOe79FL91NJsbEY5 RSNsLwE4ukvqBac1xKoB7aBKcAaJnKtPXXG7jz2vQ0/cvoh7xsykgnwyeM9eeCF57ZqY yNnzEQNMR7UqBwZRQFyz2evwvTJT+U3A9wy3PKDxaZksz+9e4CfvsbahNBoxsWv6tYhY ZKSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=rSs5jPn1jrSKdQBZwhHKvkvHpOcxTiAynX2UA6oZGGw=; b=PC06e0J/L341ZHsuPH9ttP6k1Dz5crpbB3AVxW9pRncsl4qhAP8RDb4rrBXDq9OiAW dDisvpBN7NFvht/jaO+kJo40KTTp8pQ2qVSktjrkp5kmtxPg8JyhYwMHLNs3A4jeefKc LBTXlX7r6cWAZ01i9vcBwhQp7ok7EOZMtg2OpIGAIsr9OKVPRs0FxZfJIrrTRb6oOfEa IKTTvYw9elj6gwY1bcIpvNS8FTlPPptQClZuKiuSAph2s7qhwCyz3G3X9xs5AtkU9X8l xFGj2X/abZgJn3wFImfjAjHlAnvoKtZRhG2fWAUchIw0Z9qYfNeDZxa9yF6ySAl3hn5K /4Aw== X-Gm-Message-State: AOAM533GPMeHg//fqcSW+VQvD4I71ZR6s+n73mXw726ggeIt+TMUDcDH gK44nj3cclBE8iyzgedDG9Mj+g== X-Google-Smtp-Source: ABdhPJxnA3a2MYg0mHEXZmI16aXeV/juy0zN9j4K70A9Q/mVSmBd1K2J3pbWiGUcVZlq8st3E9zdSA== X-Received: by 2002:ad4:57a6:: with SMTP id g6mr19363857qvx.133.1599488977569; Mon, 07 Sep 2020 07:29:37 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id m10sm2685430qti.46.2020.09.07.07.29.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 07:29:37 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 922532A0FB9; Mon, 7 Sep 2020 11:29:35 -0300 (-03) Date: Mon, 7 Sep 2020 11:29:35 -0300 From: Alvaro Herrera To: Pavel Stehule Cc: Tom Lane , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Refactor pg_get_line() to expose an alternative StringInfo-based Message-ID: <20200907142935.GA28809@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Sep-07, Pavel Stehule wrote: > I tried to reuse this new API in pg_dump.c, and I had a problem with > private struct StringInfo. > maybe there should be included directly with #include "lib/stringinfo.h" ? That's the right thing to do, yes. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services