pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
control over database files
3+ messages / 3 participants
[nested] [flat]

* control over database files
@ 2018-07-17 21:50 Aaron Gray <aaronngray.lists@gmail.com>
  2018-07-17 21:55 ` Re: control over database files Adrian Klaver <adrian.klaver@aklaver.com>
  2018-07-17 22:05 ` Re: control over database files David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Aaron Gray @ 2018-07-17 21:50 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hi,

I am wanting to be able to have control over what files that ables are
stored in. Basically I am looking to have literally tens of thousands of
tables all of the same type and to be able to store these as separate files
in a filing system.

-- 
Aaron Gray

Independent Open Source Software Engineer, Computer Language Researcher,
Information Theorist, and amateur computer scientist.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: control over database files
  2018-07-17 21:50 control over database files Aaron Gray <aaronngray.lists@gmail.com>
@ 2018-07-17 21:55 ` Adrian Klaver <adrian.klaver@aklaver.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Adrian Klaver @ 2018-07-17 21:55 UTC (permalink / raw)
  To: Aaron Gray <aaronngray.lists@gmail.com>; pgsql-general@lists.postgresql.org

On 07/17/2018 02:50 PM, Aaron Gray wrote:
> Hi,
> 
> I am wanting to be able to have control over what files that ables are 
> stored in. Basically I am looking to have literally tens of thousands of 
> tables all of the same type and to be able to store these as separate 
> files in a filing system.

Because?

In sense that is what is being done anyway:

https://www.postgresql.org/docs/10/static/storage-file-layout.html

> 
> -- 
> Aaron Gray
> 
> Independent Open Source Software Engineer, Computer Language Researcher, 
> Information Theorist, and amateur computer scientist.


-- 
Adrian Klaver
adrian.klaver@aklaver.com




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: control over database files
  2018-07-17 21:50 control over database files Aaron Gray <aaronngray.lists@gmail.com>
@ 2018-07-17 22:05 ` David G. Johnston <david.g.johnston@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: David G. Johnston @ 2018-07-17 22:05 UTC (permalink / raw)
  To: Aaron Gray <aaronngray.lists@gmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

On Tuesday, July 17, 2018, Aaron Gray <aaronngray.lists@gmail.com> wrote:
>
> I am wanting to be able to have control over what files that ables are
> stored in. Basically I am looking to have literally tens of thousands of
> tables all of the same type and to be able to store these as separate files
> in a filing system.
>

At first glance your needs and what PostgreSQL provides are incompatible
but you can learn the details in the documentation.

https://www.postgresql.org/docs/10/static/storage-file-layout.html

That said, you will likely find that the configuration variables that are
provided are sufficient to meet most needs and that actual control over
low-level details such as file and directory structure are something best
left to existing well written software such as PostgreSQL.

You might find that features such as row-level security and/or partitioning
(depending on why you need thousands of identical tables...) can either
reduce the need for them  or make setting them up considerably easier,
respectively.  IOW, starting with a higher level use case will produce more
useful responses.

David J.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-07-17 22:05 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-17 21:50 control over database files Aaron Gray <aaronngray.lists@gmail.com>
2018-07-17 21:55 ` Adrian Klaver <adrian.klaver@aklaver.com>
2018-07-17 22:05 ` David G. Johnston <david.g.johnston@gmail.com>

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