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 1kFKTp-0001yH-Fi for pgsql-committers@arkaria.postgresql.org; Mon, 07 Sep 2020 16:58:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kFKTo-0004iK-D3 for pgsql-committers@arkaria.postgresql.org; Mon, 07 Sep 2020 16:58:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFKTo-0004iD-7g for pgsql-committers@lists.postgresql.org; Mon, 07 Sep 2020 16:58:56 +0000 Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kFKTg-0004au-Ff for pgsql-committers@lists.postgresql.org; Mon, 07 Sep 2020 16:58:55 +0000 Received: by mail-qv1-xf44.google.com with SMTP id b13so6607665qvl.2 for ; Mon, 07 Sep 2020 09:58:48 -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=6W0ftsm5HkMmMBXZubpEkuwBcMgBotn3UFUm+8iDQic=; b=R4cxtryB0XMyWefcIW7yhycxc0NqhthqsNdL/lceiLRASlFYciYJsdoPbOmE5t9feX Emz1P1nG9EzKouFi/YptZj6rffSB9rbQgxP3aaZoDzdCJprdxHYwMrUPU5QArMGv1gkE zRXi8Asqdwf0/ghWB7mkEIIzWe8qvjsY+3xJQDvQJClSoojmrNy1h5AGs/Avn6I7et5X +xCrfUfy8RX77COt9bwS4IeO6zjF5vTLf3pb6FoCxYeycmDyF2PksSfstdHCyOpQy+pB z2wucv/cp6Tca/0Fxt5gK8Zm7zRcfkL+l5Xtg8gDlrUGSSP7hS7GPVBVgED7Dko7j1Aw reZg== 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=6W0ftsm5HkMmMBXZubpEkuwBcMgBotn3UFUm+8iDQic=; b=mQhdn2rvvwY8fcG5InoW/IEx97rieJjg+peONaD11KhOY0KE0HO+DtNNbW0AsIc5B8 RtohvjXfnDDSlFktuIuVhJSBf+Rfhbfc2DIPkvDY3MMhFTUgkczeORZTqQ4YrELb/lj9 8/AUkMelHOyteDnH0Kcn96bfPZheWaLO+sWubho4BlprG/UQaFiasIHkkvxIy3d4vdng 1WG7XKrH+jOpwmi4Gv5dTEDh8vFhau0d8GH2wlOjK2jxx1v4oR/obqmSiQH6LRipNwIv kPvvXARlyT16LwMC4C/OBErXpcaC8pYz8bGg81ZWKItdHWeSoFj9XTTEnJnSUL5NFvQb aVLA== X-Gm-Message-State: AOAM532hw4gOBPHgZwKqbqajJ5VkRgvpYmHwrZ9tMjGRHUBFU8aHtmE6 wkoFELjyCnXCSsOzqqmvMxKF9Q== X-Google-Smtp-Source: ABdhPJz0QwnxBFN1+iwOWAzYTaZosLMMNI3KZ7p04SHneJ/+kGTBBCXBIiMAVPc2SEhr3GoQCTw5ow== X-Received: by 2002:a0c:f74a:: with SMTP id e10mr19787248qvo.82.1599497926554; Mon, 07 Sep 2020 09:58:46 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id y18sm11305663qkf.93.2020.09.07.09.58.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 09:58:46 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 85EB92A0FB5; Mon, 7 Sep 2020 13:58:44 -0300 (-03) Date: Mon, 7 Sep 2020 13:58:44 -0300 From: Alvaro Herrera To: Tom Lane Cc: Pavel Stehule , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Refactor pg_get_line() to expose an alternative StringInfo-based Message-ID: <20200907165844.GA7588@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1696646.1599497640@sss.pgh.pa.us> 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, Tom Lane wrote: > Pavel Stehule writes: > > here is a patch > > What exactly is this supposed to fix? > > I didn't bother tracking down exactly where initdb.c is getting > stringinfo.h from, but it clearly does import it somewhere in > our rat's nest of headers. You can see it here: https://doxygen.postgresql.org/initdb_8c.html It's through xlog_internal.h (not that it matters much). We do the indirect-header thing all over the place. There's no point in trying to avoid it completely. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services