Re: TODO list

Lists: Postg윈 토토SQL :
From: Marko Zmak <xmak(at)sharanet(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: TODO list
Date: 2003-12-17 20:34:17
Message-ID: 20031217212219.Y14157@taliesin.sharanet.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


I've been usin psql for quite a long time and I found it to be very
comfortable. Since some web providers in my country refuse to put psql
while some thing are still in psql TODO list, I'm interested in
following...

I'd like to know when are you planning to deal with this TODO item:

Allow limits on per-db/user connections

I would appreciate if it was as soon as possible. Thanks.

Best regards, Marko Zmak.

Can't stop the Zmak
%|&|^|~|`|'|@|}|#|%


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Marko Zmak <xmak(at)sharanet(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: TODO list
Date: 2003-12-17 20:52:34
Message-ID: 200312172052.hBHKqYZ22507@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Marko Zmak wrote:
>
> I've been usin psql for quite a long time and I found it to be very
> comfortable. Since some web providers in my country refuse to put psql
> while some thing are still in psql TODO list, I'm interested in
> following...
>
>
> I'd like to know when are you planning to deal with this TODO item:
>
> Allow limits on per-db/user connections
>
> I would appreciate if it was as soon as possible. Thanks.

I know of no one working on this feature.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Marko Zmak <xmak(at)sharanet(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: TODO list
Date: 2003-12-17 21:07:03
Message-ID: Pine.LNX.4.58.0312180806320.1455@linuxworld.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, 17 Dec 2003, Bruce Momjian wrote:

> Marko Zmak wrote:
> >
> > I've been usin psql for quite a long time and I found it to be very
> > comfortable. Since some web providers in my country refuse to put psql
> > while some thing are still in psql TODO list, I'm interested in
> > following...
> >
> >
> > I'd like to know when are you planning to deal with this TODO item:
> >
> > Allow limits on per-db/user connections
> >
> > I would appreciate if it was as soon as possible. Thanks.
>
> I know of no one working on this feature.

But I'm sure no one would have a problem with Marko attempting it :-).

Gavin


From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Marko Zmak <xmak(at)sharanet(dot)org>, pgsql-hackers(at)postgresql(dot)org, Olivier PRENANT <ohp(at)pyrenet(dot)fr>
Subject: Re: TODO list
Date: 2003-12-17 21:13:00
Message-ID: 323150000.1071695580@lerlaptop-red.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

--On Thursday, December 18, 2003 08:07:03 +1100 Gavin Sherry
<swm(at)linuxworld(dot)com(dot)au> wrote:

> On Wed, 17 Dec 2003, Bruce Momjian wrote:
>
>> Marko Zmak wrote:
>> >
>> > I've been usin psql for quite a long time and I found it to be very
>> > comfortable. Since some web providers in my country refuse to put psql
>> > while some thing are still in psql TODO list, I'm interested in
>> > following...
>> >
>> >
>> > I'd like to know when are you planning to deal with this TODO item:
>> >
>> > Allow limits on per-db/user connections
>> >
>> > I would appreciate if it was as soon as possible. Thanks.
>>
>> I know of no one working on this feature.
>
> But I'm sure no one would have a problem with Marko attempting it :-).
I also know that Olivier PRENANT was looking for something similar. And
the same admonition goes. I.E., you have an itch, we'd love to see you
scratch it.

LER

>
> Gavin
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749


From: "Jonathan Gardner" <jgardner(at)jonathangardner(dot)net>
To: <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: <xmak(at)sharanet(dot)org>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: TODO list
Date: 2003-12-17 21:38:56
Message-ID: 39955.127.0.0.1.1071697136.squirrel@jonathangardner.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg윈 토토SQL :

> Marko Zmak wrote:
>>
>> I've been usin psql for quite a long time and I found it to be very
>> comfortable. Since some web providers in my country refuse to put psql
>> while some thing are still in psql TODO list, I'm interested in
>> following...
>>
>>
>> I'd like to know when are you planning to deal with this TODO item:
>>
>> Allow limits on per-db/user connections
>>
>> I would appreciate if it was as soon as possible. Thanks.
>
> I know of no one working on this feature.
>

Is this something a someone who is new to PostgreSQL development can
attempt? Does someone already have a design planned out?

--
Jonathan Gardner
jgardner(at)jonathangardner(dot)net


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Postgresql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: TODO list
Date: 2003-12-17 22:13:02
Message-ID: 3FE0D4EE.2040801@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Jonathan Gardner wrote:

>>Marko Zmak wrote:
>>
>>
>>>I've been usin psql for quite a long time and I found it to be very
>>>comfortable. Since some web providers in my country refuse to put psql
>>>while some thing are still in psql TODO list, I'm interested in
>>>following...
>>>
>>>
>>>I'd like to know when are you planning to deal with this TODO item:
>>>
>>>Allow limits on per-db/user connections
>>>
>>>I would appreciate if it was as soon as possible. Thanks.
>>>
>>>
>>I know of no one working on this feature.
>>
>>
>>
>
>Is this something a someone who is new to PostgreSQL development can
>attempt? Does someone already have a design planned out?
>
>
>
>

Before we even get there we need agreement on exactly what it means :-)

Seems like the best place for the settings might be pg_hba.conf.

Say we have a new keyword "limit" there. Here are the possibilities (I
think):

case 1 - limit username's connections to dbname:
limit dbname username n
case2 - limit username's connections regardless of database:
limit all username n
case 3 - limit all users' connections to dbname:
limit dbname all n
case 4 - limit username's connections to any particular database:
limit any username n
case 5 - limit all users' connections to any particular database:
limit any all n
case 6 - limit all users' connections regardless of database:
limit all all n

Would we want to bother about cases 4 and 5? Are the semantics of case 6
what we want?

Once the behaviour is agreed, (based on my recent experience) I think
this is something that might well be attempted by someone new to Pg
development. If you ask questions you will get plenty of help.

cheers

andrew


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Postgresql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: TODO list
Date: 2003-12-17 22:45:39
Message-ID: 13986.1071701139@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> case 6 - limit all users' connections regardless of database:
> limit all all n

That's called max_connections. Don't think we need a redundant
implementation of same ...

Another little nitpick is that I don't like assuming that "any" and
"all" are never going to be used as database or user names. (I know
that pg_hba.conf already uses "all" this way, and IMHO that was a bogus
decision. Something like "*" would have been less likely to collide.)

On an implementation level, where are you thinking of enforcing this?
pg_hba.conf would not be very appropriate for the most likely place to
put it, which is in backend startup shortly after establishing a PGPROC
entry (with the data about numbers of active connections obtained by
scanning the PGPROC array for other backends connected to the same
database or with the same userid). I think we've thrown away the
PostmasterContext long before that, so we couldn't use cached
pg_hba.conf data without some redesign of the startup sequence.

regards, tom lane


From: Þórhallur Hálfdánarson <tolli(at)tol(dot)li>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Postgresql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: TODO list
Date: 2003-12-17 23:03:48
Message-ID: 20031217230348.B13132@tol.li
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

-*- Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> [ 2003-12-17 22:46 ]:
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> > case 6 - limit all users' connections regardless of database:
> > limit all all n
>
> That's called max_connections. Don't think we need a redundant
> implementation of same ...
>
> Another little nitpick is that I don't like assuming that "any" and
> "all" are never going to be used as database or user names. (I know
> that pg_hba.conf already uses "all" this way, and IMHO that was a bogus
> decision. Something like "*" would have been less likely to collide.)
>
> On an implementation level, where are you thinking of enforcing this?
> pg_hba.conf would not be very appropriate for the most likely place to
> put it, which is in backend startup shortly after establishing a PGPROC
> entry (with the data about numbers of active connections obtained by
> scanning the PGPROC array for other backends connected to the same
> database or with the same userid). I think we've thrown away the
> PostmasterContext long before that, so we couldn't use cached
> pg_hba.conf data without some redesign of the startup sequence.

I'd like to mention that administrators likely to use the this feature would probably like to be able to tune this without having to modify a file -- updating via SQL (=> storing this in a system table) would be extremely nice...

--
Regards,
Tolli
tolli(at)tol(dot)li


From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: TODO list
Date: 2003-12-18 02:39:51
Message-ID: 1809.24.211.141.25.1071715191.squirrel@www.dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Þórhallur Hálfdánarson said:
>
> I'd like to mention that administrators likely to use the this feature
> would probably like to be able to tune this without having to modify a
> file -- updating via SQL (=> storing this in a system table) would be
> extremely nice...
>

We set connection permissions in a config file - why would we not use the
same mechanism for connection limits?

I'm not objecting, but I think we should be consistent.

cheers

andrew


From: ohp(at)pyrenet(dot)fr
To: Larry Rosenman <ler(at)lerctr(dot)org>
Cc: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Marko Zmak <xmak(at)sharanet(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: TODO list
Date: 2003-12-18 14:07:16
Message-ID: Pine.UW2.4.53.0312181505010.2514@server.pyrenet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Yeah...
That would help me soooo much, that would soooo cool...

According to what I read on the subject after I got this mail, could we
envison something like:

ALTER DATABASE xxx SET max_connection to 100;
?

Regards
On Wed, 17 Dec 2003, Larry Rosenman wrote:

> Date: Wed, 17 Dec 2003 15:13:00 -0600
> From: Larry Rosenman <ler(at)lerctr(dot)org>
> To: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>,
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
> Cc: Marko Zmak <xmak(at)sharanet(dot)org>, pgsql-hackers(at)postgresql(dot)org,
> Olivier PRENANT <ohp(at)pyrenet(dot)fr>
> Subject: Re: [HACKERS] TODO list
>
>
>
> --On Thursday, December 18, 2003 08:07:03 +1100 Gavin Sherry
> <swm(at)linuxworld(dot)com(dot)au> wrote:
>
> > On Wed, 17 Dec 2003, Bruce Momjian wrote:
> >
> >> Marko Zmak wrote:
> >> >
> >> > I've been usin psql for quite a long time and I found it to be very
> >> > comfortable. Since some web providers in my country refuse to put psql
> >> > while some thing are still in psql TODO list, I'm interested in
> >> > following...
> >> >
> >> >
> >> > I'd like to know when are you planning to deal with this TODO item:
> >> >
> >> > Allow limits on per-db/user connections
> >> >
> >> > I would appreciate if it was as soon as possible. Thanks.
> >>
> >> I know of no one working on this feature.
> >
> > But I'm sure no one would have a problem with Marko attempting it :-).
> I also know that Olivier PRENANT was looking for something similar. And
> the same admonition goes. I.E., you have an itch, we'd love to see you
> scratch it.
>
> LER
>
> >
> > Gavin
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 7: don't forget to increase your free space map settings
> >
>
>
>
>

--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
6, Chemin d'Harraud Turrou +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp(at)pyrenet(dot)fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)