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 1pI0zG-0004lX-Ua for pgsql-general@arkaria.postgresql.org; Wed, 18 Jan 2023 05:27:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pI0zF-0003fY-SW for pgsql-general@arkaria.postgresql.org; Wed, 18 Jan 2023 05:27:49 +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 1pI0zE-0003f8-9n for pgsql-general@lists.postgresql.org; Wed, 18 Jan 2023 05:27:49 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pI0zA-0003DQ-Tv for pgsql-general@lists.postgresql.org; Wed, 18 Jan 2023 05:27:47 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B22B25C006D; Wed, 18 Jan 2023 00:27:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 18 Jan 2023 00:27:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1674019663; x= 1674106063; bh=F0p56drn10MiDvFGlY5kMG3ySLmWK1aYIo5L6xH9UCU=; b=G gTnX8MOyQ2yjMAVz1rWIzqOoa29xXN8VGWEhkbo4u4qQzrp6wnFdGM9jPMSD/RpU k7SZRS3/wRt5JtRnCkY3mqHWrOll71S4A1q1IaILM4TXo3sKzdPVc1i95NuWuVfZ V4T4q73R5d8DP0AG5dUDrg2aq+XEw+9rUpfwkw4cTvDwJF81nVwjGEfgnvHjildm f6aUl2IJHVXM4lw/xq+MTYXDNaeOb4oUkyhqesBr6Y6aXfZOGiRdRfF/nuxS44jY g40SA856SEaV3ajZT7Ecih0Vardq7kv3KovdLeWJ2ki5H7Hmz/Z/8h3PPvhYqS7e FOb+AdoEOPARVfRqLPz1A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1674019663; x= 1674106063; bh=F0p56drn10MiDvFGlY5kMG3ySLmWK1aYIo5L6xH9UCU=; b=c 5nt0Cem5W/QoaE823n14cbxNR/XgK35r4j6x3VBvEPP8s3T1bPh1ofmH8cTtY2XG Z7LfhL0T4K1bPxcY6SSY5Ff7s79FE8q2DNufnQlG0T3i73Fi1t6QXNyiOm/YovlH IlbLEpV/vlV7mPHEjTEkZM8a7nCRCHjcLHUSlGlp4t068EQycN7Tgxa6hHRx0vDk BNQvNn/fJVtQjVHlEF2A1q+naaouoSZoYnL06hJMZi8Bk5pgm5LKjtM3cnTNytpg ln/15BCDwVSI8CtAgbFwbjnGIgfmOJ+/e4Nmw1Pg2c1bly6/IuYijKP02yit97ex t85ZXkmhEehb4IBiGn7Xw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtjedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhephfegveekfeelffdvgfdvfefftdeujeehheeuieff hfefiefhvdfhgfetgfdvuefgnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrgh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughr ihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 Jan 2023 00:27:42 -0500 (EST) Message-ID: <72d26e5f-0b07-a153-14ab-d2795b108f71@aklaver.com> Date: Tue, 17 Jan 2023 21:27:42 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: Tablespace OID, database OID, relfilenode To: Wiwwo Staff Cc: Laurenz Albe , pgsql-general@lists.postgresql.org References: <1505292e2bedcfcf13e9334f686946742b9db7f2.camel@cybertec.at> <3942b14b-be82-805f-3ec4-3be85d89b2b6@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/17/23 11:49, Wiwwo Staff wrote: > Thank you Adrian, thank you David! > So, it turns out, it *is* indeed an arbitrary constant... > I have been answered many times RTFM, it is actually the first time I > have being answered RTF source code. > (I searched for 1663 in PG docs, it is there, although not really > "intuitive"). > > Allow me to humbly propose to maybe at least write somewhere in the DOCs > in a clear way: "This is a number you should know, and it is arbitrary, > and in some functions it will be represented as 'base'  ". > It is fundamental to know this when one uses pg_waldump, for example. > > Not to start a flame war here, just humbly proposing... https://www.postgresql.org/docs/current/storage-file-layout.html "The pg_default tablespace is not accessed through pg_tblspc, but corresponds to PGDATA/base. Similarly, the pg_global tablespace is not accessed through pg_tblspc, but corresponds to PGDATA/global." > > Thanks all again! > > -- Adrian Klaver adrian.klaver@aklaver.com