Re: Where is the logig to create a table file?

From: Pavel Borisov <pashkin(dot)elfe(at)gmail(dot)com>
To: "jacktby(at)gmail(dot)com" <jacktby(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Where is the logig to create a table file?
Date: 2023-02-03 09:44:46
Message-ID: CALT9ZEG5DaYCyRXdgTKVhr-G9VK3ZFW3h49+Ba1m6kVTKaprsg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, Jack

On Fri, 3 Feb 2023 at 13:19, jacktby(at)gmail(dot)com <jacktby(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2023-02-03 09:55:40 Re: [PATCH] Compression dictionaries for JSONB
Previous Message Amit Kapila 2023-02-03 09:44:17 Re: Perform streaming logical transactions by background workers and parallel apply