From: Paul Jungwirth <pj@illuminatedcomputing.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: a very naive question about table names in Postgres
Date: Fri, 31 Dec 2021 13:25:20 -0800
Message-ID: <a1a7da95-2091-e1fe-3154-238aeb5964a9@illuminatedcomputing.com> (raw)
In-Reply-To: <CH2PR05MB67904930CD251093EC5B9C56C4469@CH2PR05MB6790.namprd05.prod.outlook.com>
References: <CH2PR05MB67904930CD251093EC5B9C56C4469@CH2PR05MB6790.namprd05.prod.outlook.com>
On 12/31/21 12:27 PM, Martin Mueller wrote:
> I know that on my Mac the tables are kept in the data directory
> /Users/martinmueller/Library/Application Support/Postgres/var-13. If I
> go there I see that internally the tables have numbers. Somewhere in
> the system there must be a table that maps the name I gave to table X
> to the numerical inside the database.
>
> Where is that mapping and how can I query it? On what page of the
> documentation do I find the answer?
Dear Prof. Mueller,
This question strikes Postgres people a bit like your teenager asking
where you keep the tallest ladder. There aren't many practical uses for
accessing these files directly, and if you do it's likely to break your
database. Could you speak a bit more about your goal here? Perhaps
someone can suggest a good way to achieve it.
Yours,
--
Paul ~{:-)
pj@illuminatedcomputing.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: pj@illuminatedcomputing.com
Subject: Re: a very naive question about table names in Postgres
In-Reply-To: <a1a7da95-2091-e1fe-3154-238aeb5964a9@illuminatedcomputing.com>
References: <CH2PR05MB67904930CD251093EC5B9C56C4469@CH2PR05MB6790.namprd05.prod.outlook.com> <a1a7da95-2091-e1fe-3154-238aeb5964a9@illuminatedcomputing.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox