public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Robert Haas <[email protected]>
Cc: Dilip Kumar <[email protected]>
Cc: Andres Freund <[email protected]>
Cc: Heikki Linnakangas <[email protected]>
Cc: Thomas Munro <[email protected]>
Cc: pgsql-hackers <[email protected]>
Cc: vignesh C <[email protected]>
Subject: Re: making relfilenodes 56 bits
Date: Fri, 29 Jul 2022 16:08:21 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+TgmobZmhx8F1ajnb1A0pBe=u3+LCHN48BMZ968fcDjiiLMtQ@mail.gmail.com>
References: <CA+TgmoZfxMRfWW7X16TGWh1Q8taRtCb3hRTwWqY-4_XiQCYYKw@mail.gmail.com>
	<CAFiTN-vTe79M8uDH1yprOU64MNFE+R3ODRuA+JWf27JbhY4hJw@mail.gmail.com>
	<CA+TgmoZyKktnjNjpa_6wHfhNRaZfYS4Nfu--t8k5JgKkTR8paw@mail.gmail.com>
	<CA+TgmoZTJsbJXoXWceQkaHdxjFz23BL=+xZiD64FgqVAQ77jPQ@mail.gmail.com>
	<CAFiTN-s5ehHu2N9vuZcwg+NOENvf3v0FMXQQZq1faGjReP7mtw@mail.gmail.com>
	<CA+TgmoZq5=LWDK7kHaUbmWXxcaTuw_QwafgG9dr-BaPym_U8WQ@mail.gmail.com>
	<[email protected]>
	<CA+TgmobwFU-D_cWAqUooUGaQrC91B5QOW79HF=n-1=ApmFh9=Q@mail.gmail.com>
	<[email protected]>
	<CA+TgmoacMgLv_0edhN=oWjnUvJyFjXww4Q4re4kfm+qkSBtjaQ@mail.gmail.com>
	<[email protected]>
	<CA+TgmoZhAAD+92KM6M73Rnpi_3YcCosMY=_ff-Eqhix3uzuSYA@mail.gmail.com>
	<CAFiTN-s3E16MCR72sWVogrZ1B5_8p1eqK1fbWRYmLXV9LxYY6A@mail.gmail.com>
	<CAFiTN-ttOXLX75k_WzRo9ar=VvxFhrHi+rJxns997F+yvkm==A@mail.gmail.com>
	<[email protected]! mail.com>
	<CAFiTN-uPcJ+-b228TVzVneW+2nZ09edgRU5D5v5Qmj-8g8AZag@mail.gmail.com>
	<CALDaNm3smTdFm3rjd18dU66Gat18WETOYeGjMCRUzm6A=NhRTA@mail.gmail.com>
	<CAFiTN-tYbM7D+2UGiNc2kAFMSQTa5FTeYvmg-Vj2HvPdVw2Gvg@mail.gmail.com>
	<CA+TgmobLpTDfLco7me_bnyX=TZkO93ZeT7gFNjTAvqvADUx7DA@mail.gmail.com>
	<CAFiTN-srGSye68DGvkT25DavmQEeTRXJSbJH86WYiqDY3QjPUg@mail.gmail.com>
	<CAFiTN-uJqaNa6Ss2ymg-=e39WXSZkZWPDjDw8Rsqr3_btoY4bg@mail.gmail.com>
	<CA+TgmoZxQrvs-bydsvSdvV5G6EdySq=OiD1Sti27-jgnH7roKQ@mail.gmail.com>
	<CAFiTN-uwSER21k_-WehsHe63fJTY+Bizc+Q+6S58xp4YvsJV_Q@mail.gmail.com>
	<CA+TgmoZ1HAQxAXQb_guUB+Tsdaat54rtisf9qD0diWxcUgd3nA@mail.gmail.com>
	<CA+TgmobZmhx8F1ajnb1A0pBe=u3+LCHN48BMZ968fcDjiiLMtQ@mail.gmail.com>

Robert Haas <[email protected]> writes:
> I was taught that when programming in C one should avoid returning a
> struct type, as BufTagGetRelFileLocator does.

FWIW, I think that was invalid pre-ANSI-C, and maybe even in C89.
C99 and later requires it.  But it is pass-by-value and you have
to think twice about whether you want the struct to be copied.

			regards, tom lane





view thread (163+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
  Subject: Re: making relfilenodes 56 bits
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox