Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iA4lA-0007Ro-Bz for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Sep 2019 04:06:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iA4l8-0006Fs-VD for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Sep 2019 04:06:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iA4l7-0006Fa-6V for pgsql-hackers@lists.postgresql.org; Tue, 17 Sep 2019 04:06:34 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iA4l1-0001Ia-0o for pgsql-hackers@postgresql.org; Tue, 17 Sep 2019 04:06:32 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 692B12766; Tue, 17 Sep 2019 00:06:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 17 Sep 2019 00:06:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=l/BWUpy4L5+IH115k3iYEybBnsC Ad8YYo+6bksuo2R0=; b=HPvCMpRXxl3LZKk7wruiDjxE7Y/Kr3cSFNKVTkZWYJ0 T4A8lzKd6g1M6v7mssU4jjYOmQOhhJRhuyj2JKPr3PrUN9zR9WQOEgX95M8NspX/ EJ5diNzUWichH5/kxjZqC/+sJQZFarzfrvFmeRrOUkUY1rG+sqgSNvRPBM4EKiUv ODfT4Zoa4NA9xSg39nlVDMpIZV1B5J4kb6jAm4tx23q0PQbNm+CRQ3EoqCZevA55 BRjX5JU81tSB7o3HjNosQ/nKWejZKBxAQkzXjIlKt1HwEPQDnz2i8XN1B7RU7HBM BdpWosdNMXSZSc95aHYpQ7+NdZPrsbZfWFEP9S3U1mA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=l/BWUp y4L5+IH115k3iYEybBnsCAd8YYo+6bksuo2R0=; b=Lm8LwYzjYOv0fpVEZG8qc6 cIwwrJ6gDtu0P5GwTrpVRxKZBlfFr1AteBUSrafiQAQ862w8YoQhh03cIuvNYRv5 HN+xDDswE++lM/+1AslSSStxQFupD7oovMODVn1N69IfN2XsMDD01eKrXCNDPwT9 Wq7SA2F103rGKEZnhP1TschZc+oEIOaWWwbWRniJstvr4ANB6bmzOalwlpr2CqCN htDVmYXjkUAwD3mENRQxr5Ne7tQaJtsNVIE4KwZvvTB1BlrkGvsJI5c0imdDLoDB YS5bYS23SL3kGS2A2yNDpoR3cEWD0NIFG/IyIcXIwubyrhdyix85KCSDwBQiSYmg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeggdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 010FCD6005F; Tue, 17 Sep 2019 00:06:21 -0400 (EDT) Date: Tue, 17 Sep 2019 13:06:18 +0900 From: Michael Paquier To: Amit Kapila Cc: Alvaro Herrera , Masahiko Sawada , Craig Ringer , Ashutosh Sharma , Julien Rouhaud , Peter Geoghegan , PostgreSQL Hackers , Abhijit Menon-Sen , Peter Eisentraut , Pavan Deolasee Subject: Re: [HACKERS] [PATCH] pageinspect function to decode infomasks Message-ID: <20190917040618.GD1660@paquier.xyz> References: <20190916134056.GB6026@paquier.xyz> <20190916141106.GA10690@alvherre.pgsql> <20190917004417.GA1660@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="//IivP0gvsAy3Can" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --//IivP0gvsAy3Can Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Sep 17, 2019 at 09:23:45AM +0530, Amit Kapila wrote: > We always return a single tuple/record from this function, so do we > really need to return SETOF record or just returning record is > sufficient? Right (with the doc update). > If you want to use the same size array, then you might want to just > memset the previous array rather than first freeing it and then again > allocating it. This is not a big point, so any which way is fine. Sure. This is less expensive though, so changed it the way you are suggesting on my local branch. -- Michael --//IivP0gvsAy3Can Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl2AW7oACgkQnvQgOdby QH1o6RAAn9lmxPXZZRU1BKjxtYKK8oT+2AAZTbbOpiL03ZzsKOVUA9yQG7FKuhwl Z5V3TeOowAaXSplR1PM+cv43/3hH1gIywcL29Z7dc/45IIrNheMf3SXePbBi+6et 2HVGc1wdrYjn5gpjVE7j7oOBqA+3Wb+1aSqViX79NysxuKKftu2MMxywlvzB5+Eh wC9edehmghLVEaGdVx0wTx4fKnErQcGBvLMLxFVp263cbIBS5WUr9O7tCK+GAZCH KQmLeYn/FCq0ADDUChOpizqZMMGA6qg817IpARVnJRMMT41+aqASIGUbCMakLTSf yprZq+TRxH6D5poqYW8gnBE/26tczzsV3r/VIEs45MRg3BeAwockComBMYb3n8pL 8GUviNvU04Id4usgE00Sl5aFpA4tZZ3socku3a1aT4XBNkjJFQISqmzVhqsxvnA7 dzuOAvHGslyY+M0MF7d3amIaPCJojSDm2eD8PEqkdIzf/kCeC9N7zii2W2qNc0oK Cjui5kD3ITtMk8ggQb2qF+FgdrQ1QUXPlTibGVbV57dWzRXE99pdQFqH+rE77aNq AlBr3D+vxYZ53Lf8rDymTiJZVsjjpqxXkOhwkzA+s5ADfBTahgYP8N0mQmMedRJ0 i92tPc+P92hbdE46pQq7nbdgs8NBIjlxqfdZmd0yR5FIJTAqKzI= =70fJ -----END PGP SIGNATURE----- --//IivP0gvsAy3Can--