Re: Tablespace limit feature

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Alejandro Carrillo <fasterzip(at)yahoo(dot)es>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Tablespace limit feature
Date: 2014-11-06 22:43:01
Message-ID: 20141106224301.GV28859@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Jim Nasby (Jim(dot)Nasby(at)BlueTreble(dot)com) wrote:
> On 11/4/14, 2:10 PM, Alvaro Herrera wrote:
> >Alejandro Carrillo escribió:
> >>>
> >>>But This feature is very necessary to control the amount space expensed by a postgresql user or tablespace. This feature could be used in PostgreSQL Sharing Hosting, see: Shared Database Hosting - PostgreSQL wiki
> >Sure. Rub hits the road when it comes to actually implementing this,
> >though -- the issue of enforcing the limit without creating a bottleneck
> >to table extension is not trivial to overcome, as I recall.
>
> And index extension. And visibility map extension. And, and, and.

Indexes I could agree with. I'm not sure that the VM would be
worthwhile to include explicitly; as its size is dictated directly by
the number of pages in the heap, we might be able to include it
implicitly. There are definitely big questions around how to track
space used and how to figure out if we've reached the limit, in an
efficient and correct way.

> It's definitely a non-trivial problem to solve, and unfortunately there are extremely few hosting environment providers active in the community to even ask for the kinds of features they need, which means this just doesn't get much attention.

Agreed. There are also larger problems (ran into yet another case of
"wait, roles aren't database-specific?!" just today..) than the quota
issue for hosting providers.

Thanks,

Stephen

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Seth Pollack 2014-11-06 23:03:08 does pg_restore respect CLUSTER ON in the schema?
Previous Message Jim Nasby 2014-11-06 22:23:58 Re: Tablespace limit feature