Re: Where is the logig to create a table file? - Mailing list pgsql-hackers

From Pavel Borisov
Subject Re: Where is the logig to create a table file?
Date
Msg-id CALT9ZEG5DaYCyRXdgTKVhr-G9VK3ZFW3h49+Ba1m6kVTKaprsg@mail.gmail.com
Whole thread Raw
In response to Where is the logig to create a table file?  ("jacktby@gmail.com" <jacktby@gmail.com>)
Responses Re: Where is the logig to create a table file?
List pgsql-hackers
Hi, Jack

On Fri, 3 Feb 2023 at 13:19, jacktby@gmail.com <jacktby@gmail.com> wrote:
>
> When I use 'create table t(a int);'; suppose that this table t's oid is 1200,
> then postgres will create a file named 1200 in the $PGDATA/base, So where
> is the logic code in the internal?
>
heapam_relation_set_new_filenode()->RelationCreateStorage()

Kind regards,
Pavel Borisov,
Supabase



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Perform streaming logical transactions by background workers and parallel apply
Next
From: Alvaro Herrera
Date:
Subject: Re: [PATCH] Compression dictionaries for JSONB