Re: [GENERAL] database folder name and tables filenames - Mailing list pgsql-general

From Tom Lane
Subject Re: [GENERAL] database folder name and tables filenames
Date
Msg-id 22292.1487100229@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] database folder name and tables filenames  (Mimiko <vbvbrj@gmail.com>)
List pgsql-general
Mimiko <vbvbrj@gmail.com> writes:
> On 14.02.2017 17:30, Adrian Klaver wrote:
>> Is there a particular problem you are trying to solve?

> No, there is not a problem. Its a convenience to visually view databases and tables with theirs name and know what
thesize they occupy with using  
> queries of pg_catalog, like there is in mysql.

Don't really see why you need the underlying files to be named differently
for that purpose.  Typically people write something like
    select relname, pg_relation_size(oid) from pg_class where ...

If you really want to do it from outside the database, the
contrib/oid2name program might help you.

            regards, tom lane


pgsql-general by date:

Previous
From: Shawn Thomas
Date:
Subject: [GENERAL] Can't restart Postgres
Next
From: "Joshua D. Drake"
Date:
Subject: Re: [GENERAL] Can't restart Postgres