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

Поиск
Список
Период
Сортировка
От Kyotaro Horiguchi
Тема Re: Where is the logig to create a table file?
Дата
Msg-id 20230207.135659.25944268928443873.horikyota.ntt@gmail.com
обсуждение исходный текст
Ответ на Re: Where is the logig to create a table file?  (Pavel Borisov <pashkin.elfe@gmail.com>)
Список pgsql-hackers
At Fri, 3 Feb 2023 13:44:46 +0400, Pavel Borisov <pashkin.elfe@gmail.com> wrote in 
> 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()

Or if you are searching for the logic to determin the file name, see
GetNewRelFileNumber().

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Exit walsender before confirming remote flush in logical replication
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Time delayed LR (WAS Re: logical replication restrictions)