Re: [HACKERS] alter user/role CURRENT_USER

2015-04-30 Thread Kyotaro HORIGUCHI
Hello, At Thu, 30 Apr 2015 17:12:25 -0300, Alvaro Herrera wrote in <20150430201225.gv4...@alvh.no-ip.org> > Kyotaro HORIGUCHI wrote: > > Thank you for completing this and very sorry not to respond these > > days. > > > > I understood that it is committed after I noticed that rebasing > > my cod

Re: [HACKERS] alter user/role CURRENT_USER

2015-04-30 Thread Alvaro Herrera
Kyotaro HORIGUCHI wrote: > Thank you for completing this and very sorry not to respond these > days. > > I understood that it is committed after I noticed that rebasing > my code failed.. You'd do well to check your email, I guess :-) > Although after committed, I found some issues as I looked o

Re: [HACKERS] alter user/role CURRENT_USER

2015-03-12 Thread Kyotaro HORIGUCHI
Thank you for completing this and very sorry not to respond these days. I understood that it is committed after I noticed that rebasing my code failed.. Although after committed, I found some issues as I looked on it. Please forgive me to comment it now after all this time. Several changes in do

Re: [HACKERS] alter user/role CURRENT_USER

2015-03-09 Thread Alvaro Herrera
Alvaro Herrera wrote: > With this patch applied, doing > \h ALTER ROLE > in psql looks quite odd: note how wide it has become. Maybe we should > be doing this differently? (Hmm, why don't we accept ALL in the first SET > line? Maybe that's just a mistake and the four lines should be all > ident

Re: [HACKERS] alter user/role CURRENT_USER

2015-03-06 Thread Alvaro Herrera
There is something odd here going on: alvherre=# alter group test add user current_user; ERROR: role "test" is a member of role "(null)" Surely (null) is not the right name to be reporting there ... Attached is a rebased patch, which also has some incomplete doc changes. With this patch applie

Re: [HACKERS] alter user/role CURRENT_USER

2015-03-02 Thread Alvaro Herrera
Actually this is better -- I added token location tracking, and changed RoleId to use RoleSpec which means it can throw errors with locations when "public" or "none" are specified. I think the checks for public/none in CreateRole and AlterRole are dead code now. -- Álvaro Herrera

Re: [HACKERS] alter user/role CURRENT_USER

2015-03-02 Thread Alvaro Herrera
Alvaro Herrera wrote: > Kyotaro HORIGUCHI wrote: > Thanks for doing the fiddly work here. Attached is a new version of > this patch. I simplified some things, including removing those rules > you added to RoleId. It seems to me that this problem: > > > RoleId in the patch still has rule compon

Re: [HACKERS] alter user/role CURRENT_USER

2015-03-02 Thread Alvaro Herrera
Kyotaro HORIGUCHI wrote: > Hello, thank you for the comment. > > > Looking at this a bit, I'm not sure completely replacing RoleId with a > > node is the best idea; some of the users of that production in the > > grammar are okay with accepting only normal strings as names, and don't > > need all

Re: [HACKERS] alter user/role CURRENT_USER

2015-01-27 Thread Kyotaro HORIGUCHI
Hello, thank you for the comment. > Looking at this a bit, I'm not sure completely replacing RoleId with a > node is the best idea; some of the users of that production in the > grammar are okay with accepting only normal strings as names, and don't > need all the CURRENT_USER etc stuff. You're r

Re: [HACKERS] alter user/role CURRENT_USER

2015-01-22 Thread Alvaro Herrera
Looking at this a bit, I'm not sure completely replacing RoleId with a node is the best idea; some of the users of that production in the grammar are okay with accepting only normal strings as names, and don't need all the CURRENT_USER etc stuff. Maybe we need a new production, say RoleSpec, and w

Re: [HACKERS] alter user set local_preload_libraries.

2014-12-23 Thread Kyotaro HORIGUCHI
Hello, sorry for the absense, Thank you for committing. > On 8/29/14 4:01 PM, Peter Eisentraut wrote: > > On 8/28/14 9:01 AM, Kyotaro HORIGUCHI wrote: > >> I found this issue when trying per-pg_user (role) loading of > >> auto_analyze and some tweaking tool. It is not necessarily set by > >> the

Re: [HACKERS] alter user set local_preload_libraries.

2014-12-22 Thread Peter Eisentraut
On 8/29/14 4:01 PM, Peter Eisentraut wrote: > On 8/28/14 9:01 AM, Kyotaro HORIGUCHI wrote: >> I found this issue when trying per-pg_user (role) loading of >> auto_analyze and some tweaking tool. It is not necessarily set by >> the user by own, but the function to decide whether to load some >> modu

Re: [HACKERS] alter user/role CURRENT_USER

2014-12-15 Thread Kyotaro HORIGUCHI
Thank you. > A new patch has been sent here but no review occurred, hence moving > this item to CF 2014-12. regards, -- Kyotaro Horiguchi NTT Open Source Software Center -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.po

Re: [HACKERS] alter user set local_preload_libraries.

2014-12-14 Thread Michael Paquier
On Tue, Dec 9, 2014 at 11:56 PM, Robert Haas wrote: > On Mon, Dec 8, 2014 at 9:18 PM, Tom Lane wrote: >> Barring someone committing to spend the time to improve that situation >> (time that would be poorly invested IMO), I don't think that we want to >> open up ignore_system_indexes as USERSET, o

Re: [HACKERS] alter user/role CURRENT_USER

2014-12-14 Thread Michael Paquier
On Fri, Nov 14, 2014 at 5:39 PM, Kyotaro HORIGUCHI wrote: > Hi, this is revised version. > >> Kyotaro HORIGUCHI wrote: >> >> > - Storage for new information >> > >> > The new struct NameId stores an identifier which telling what it >> > logically is using the new enum NameIdTypes. >> >> I think Na

Re: [HACKERS] alter user set local_preload_libraries.

2014-12-09 Thread Robert Haas
On Mon, Dec 8, 2014 at 9:18 PM, Tom Lane wrote: > Barring someone committing to spend the time to improve that situation > (time that would be poorly invested IMO), I don't think that we want to > open up ignore_system_indexes as USERSET, or do anything else to encourage > its use. > > If we're in

Re: [HACKERS] alter user set local_preload_libraries.

2014-12-08 Thread Tom Lane
Peter Eisentraut writes: > On 12/8/14 12:39 PM, Robert Haas wrote: >> On Sun, Dec 7, 2014 at 9:54 AM, Peter Eisentraut wrote: >>> My radical proposal therefore would have been to embrace this >>> inconsistency and get rid of PGC_BACKEND and PGC_SU_BACKEND altogether, >>> relying on users interpre

Re: [HACKERS] alter user set local_preload_libraries.

2014-12-08 Thread Peter Eisentraut
On 12/8/14 12:39 PM, Robert Haas wrote: > On Sun, Dec 7, 2014 at 9:54 AM, Peter Eisentraut wrote: >> My radical proposal therefore would have been to embrace this >> inconsistency and get rid of PGC_BACKEND and PGC_SU_BACKEND altogether, >> relying on users interpreting the parameter names to indi

Re: [HACKERS] alter user set local_preload_libraries.

2014-12-08 Thread Robert Haas
On Sun, Dec 7, 2014 at 9:54 AM, Peter Eisentraut wrote: > My radical proposal therefore would have been to embrace this > inconsistency and get rid of PGC_BACKEND and PGC_SU_BACKEND altogether, > relying on users interpreting the parameter names to indicate that > changing them later may or may no

Re: [HACKERS] alter user set local_preload_libraries.

2014-12-07 Thread Tom Lane
Peter Eisentraut writes: > My radical proposal therefore would have been to embrace this > inconsistency and get rid of PGC_BACKEND and PGC_SU_BACKEND altogether, > relying on users interpreting the parameter names to indicate that > changing them later may or may not have an effect. Unfortunatel

Re: [HACKERS] alter user set local_preload_libraries.

2014-12-07 Thread Peter Eisentraut
On 11/12/14 1:01 PM, Fujii Masao wrote: > On Wed, Nov 5, 2014 at 1:22 AM, Peter Eisentraut wrote: >> On 10/9/14 1:58 PM, Fujii Masao wrote: >>> Also I think that it's useful to allow ALTER ROLE/DATABASE SET to >>> set PGC_BACKEND and PGC_SU_BACKEND parameters. So, what >>> about applying the attac

Re: [HACKERS] alter user/role CURRENT_USER

2014-11-14 Thread Kyotaro HORIGUCHI
Hi, this is revised version. > Kyotaro HORIGUCHI wrote: > > > - Storage for new information > > > > The new struct NameId stores an identifier which telling what it > > logically is using the new enum NameIdTypes. > > I think NameId is a bad name for this. My point is that NameId, as it > stan

Re: [HACKERS] alter user/role CURRENT_USER

2014-11-13 Thread Alvaro Herrera
Kyotaro HORIGUCHI wrote: > - Storage for new information > > The new struct NameId stores an identifier which telling what it > logically is using the new enum NameIdTypes. I think NameId is a bad name for this. My point is that NameId, as it stands, might be a name for anything, not just a rol

Re: [HACKERS] alter user set local_preload_libraries.

2014-11-12 Thread Fujii Masao
On Wed, Nov 5, 2014 at 1:22 AM, Peter Eisentraut wrote: > On 10/9/14 1:58 PM, Fujii Masao wrote: >> Also I think that it's useful to allow ALTER ROLE/DATABASE SET to >> set PGC_BACKEND and PGC_SU_BACKEND parameters. So, what >> about applying the attached patch? This patch allows that and >> chang

Re: [HACKERS] alter user/role CURRENT_USER

2014-11-10 Thread Kyotaro HORIGUCHI
Hello, This is the new version. (WIP v2) The first attachment is the patch and the second is test sql script. - Behavior changing Almost all syntax taking role accepts CURRENT_USER and SESSION_USER and they are distinguished from "current_user" and "session_user". The exceptions are follows. -

Re: [HACKERS] alter user/role CURRENT_USER

2014-11-05 Thread Kyotaro HORIGUCHI
Hello, > Adam Brightwell writes: > > FWIW, I found the following in the archives: > > > http://www.postgresql.org/message-id/15516.1038718...@sss.pgh.pa.us > > > Now this is from 2002 and it appears it wasn't necessary to change at the > > time, but I haven't yet found anything else related (it

Re: [HACKERS] alter user set local_preload_libraries.

2014-11-04 Thread Tom Lane
Peter Eisentraut writes: > On 10/9/14 1:58 PM, Fujii Masao wrote: >> Also I think that it's useful to allow ALTER ROLE/DATABASE SET to >> set PGC_BACKEND and PGC_SU_BACKEND parameters. So, what >> about applying the attached patch? This patch allows that and >> changes the context of session_prelo

Re: [HACKERS] alter user set local_preload_libraries.

2014-11-04 Thread Peter Eisentraut
On 10/9/14 1:58 PM, Fujii Masao wrote: > Also I think that it's useful to allow ALTER ROLE/DATABASE SET to > set PGC_BACKEND and PGC_SU_BACKEND parameters. So, what > about applying the attached patch? This patch allows that and > changes the context of session_preload_libraries to PGC_SU_BACKEND.

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-31 Thread Adam Brightwell
All, > I agree that we should probably seperate the concerns here. Personally, > I like the idea of being able to say "CURRENT_USER" in utility commands > to refer to the current user where a role would normally be expected, as > I could see it simplifying things for some applications, but that'

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-30 Thread Tom Lane
Adam Brightwell writes: > FWIW, I found the following in the archives: > http://www.postgresql.org/message-id/15516.1038718...@sss.pgh.pa.us > Now this is from 2002 and it appears it wasn't necessary to change at the > time, but I haven't yet found anything else related (it's a big archive). > T

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-30 Thread Tom Lane
Stephen Frost writes: > The other idea which comes to mind is- could we try to actually resolve > what the 'right' answer is here, instead of setting a special value and > then having to detect and fix it later? No, absolutely not. Read the NOTES at the head of gram.y. Or if you need it spelled

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-30 Thread Stephen Frost
* Adam Brightwell (adam.brightw...@crunchydatasolutions.com) wrote: > > | RoleId_or_curruser: RoleId{ $$ = $1; } > > | | CURRENT_USER { $$ = "\x00\x01";}; [...] > > This is ugly but needs no additional struct member or special > > logics. (Macros c

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-30 Thread Adam Brightwell
Kyotaro, Zero-length identifiers are rejected in scanner so RoleId cannot > be a valid pointer to a zero-length string. (NULL is used as > PUBLIC in auth_ident) > > | postgres=# create role ""; > | ERROR: zero-length delimited identifier at or near > | postgres=# create role U&"\00"; > | ERR

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-30 Thread Kyotaro HORIGUCHI
Hello, At Tue, 28 Oct 2014 09:05:20 -0400, Stephen Frost wrote in <20141028130520.gl28...@tamriel.snowman.net> > > As well, the > > originally proposed "RoleId_or_curruser" suffers from the same issue. I'm > > going to go out on a limb here, but is it not possible to consider > > "current_user"

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-29 Thread Kyotaro HORIGUCHI
Hello, thank you all for many comments. At the first, I removed changes for role-vs-user consistency and remove all added role named other than current_user. The followings are one-by-one answer for the comments so far, please let me know if I missed anything. - The necessity of the new function

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-28 Thread Alvaro Herrera
Marti Raudsepp wrote: > On Fri, Oct 24, 2014 at 11:29 AM, Kyotaro HORIGUCHI > wrote: > > - 0001-ALTER-ROLE-CURRENT_USER_v2.patch - the patch. > > +RoleId:CURRENT_USER{ $$ = > "current_user";} > + | USER { $$ = "curr

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-28 Thread Stephen Frost
* Kevin Grittner (kgri...@ymail.com) wrote: > Stephen Frost wrote: > > > You can still double-quote reserved words and use them in general. What > > we're talking about here are cases where a word can't be used even if > > it's double-quoted, and we try really hard to keep those cases at an > >

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-28 Thread Robert Haas
On Tue, Oct 28, 2014 at 2:40 AM, Adam Brightwell wrote: > Taking a step back, I'm still not sure I understand the need for this > feature or the use case. It seems to have started as a potential fix to an > inconsistency between ALTER USER and ALTER ROLE syntax (which I think I > could see some v

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-28 Thread Kevin Grittner
Stephen Frost wrote: > You can still double-quote reserved words and use them in general. What > we're talking about here are cases where a word can't be used even if > it's double-quoted, and we try really hard to keep those cases at an > absolute minimum. We should also really be keeping a li

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-28 Thread Stephen Frost
* Adam Brightwell (adam.brightw...@crunchydatasolutions.com) wrote: > > +RoleId:CURRENT_USER{ $$ = > > "current_user";} > > + | USER { $$ = "current_user";} > > + | CURRENT_ROLE { $$ =

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-27 Thread Adam Brightwell
> > +RoleId:CURRENT_USER{ $$ = > "current_user";} > + | USER { $$ = "current_user";} > + | CURRENT_ROLE { $$ = "current_user";} > + | SESSION_USER { $

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-27 Thread David G Johnston
Marti Raudsepp wrote > On Fri, Oct 24, 2014 at 11:29 AM, Kyotaro HORIGUCHI > < > horiguchi.kyotaro@.co > > wrote: > > But should ALTER USER ALL and ALTER ROLE ALL really do the same thing? > A user is a role with the LOGIN option. Every user is a role, but not > every role is a user. I suspect t

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-27 Thread Marti Raudsepp
On Fri, Oct 24, 2014 at 11:29 AM, Kyotaro HORIGUCHI wrote: > - 0001-ALTER-ROLE-CURRENT_USER_v2.patch - the patch. +RoleId:CURRENT_USER{ $$ = "current_user";} + | USER { $$ = "current_user";} + | CURRENT_ROL

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-27 Thread Adam Brightwell
All, I just ran through the patch giving it a good once over, some items to address/consider/discuss: * Trailing whitespace. * Why are you making changes in foreigncmds.c? These seem like unnecessary changes. I see that you are trying to consolidate but this refactor seems potentially out of sc

Re: [HACKERS] alter user set local_preload_libraries.

2014-10-27 Thread Fujii Masao
On Tue, Oct 21, 2014 at 3:16 PM, Kyotaro HORIGUCHI wrote: > Wow. > >> > By the way, I became unable to login at all after wrongly setting >> > *_preload_libraries for all available users. Is there any releaf >> > measures for the situation? I think it's okay even if there's no >> > way to login ag

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-26 Thread Rushabh Lathia
Thanks Kyotaro, I just did quickly looked at the patch and it does cover more syntax then earlier patch. But still if doesn't not cover the all the part of syntax where we can use CURRENT_USER/CURRENT_ROLE/USER/SESSION_USER. For example: -- Not working alter default privileges for role current_us

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-24 Thread Kyotaro HORIGUCHI
Hi, here is the revised patch. Attached files are the followings - 0001-ALTER-ROLE-CURRENT_USER_v2.patch - the patch. - testset.tar.bz2 - test set. Run by typing 'make check' as a superuser of the running postgreSQL server. It creates "testdb" and some roles. Documents are not edited t

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-21 Thread Kyotaro HORIGUCHI
Hello, > Kyotaro, > > Food for thought. Couldn't you reduce the following block: > > + if (strcmp(stmt->role, "current_user") == 0) > + { > + roleid = GetUserId(); > + tuple = SearchSysCache1(AUTHOID, ObjectIdGetDatum(roleid)); > + if (!HeapTupleIsValid(tuple)) > + ereport(ERROR, > + (errcode(E

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-21 Thread Kyotaro HORIGUCHI
Thank you for reviewing, 2014 13:10:57 +0530, Rushabh Lathia wrote in > I gone through patch and here is the review for this patch: > > > .) patch go applied on master branch with patch -p1 command >(git apply failed) > .) regression make check run fine > .) testcase coverage is missing

Re: [HACKERS] alter user set local_preload_libraries.

2014-10-20 Thread Kyotaro HORIGUCHI
Wow. > > By the way, I became unable to login at all after wrongly setting > > *_preload_libraries for all available users. Is there any releaf > > measures for the situation? I think it's okay even if there's no > > way to login again but want to know if any. > > Yep, that's a problem. You can l

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-20 Thread Brightwell, Adam
Kyotaro, Food for thought. Couldn't you reduce the following block: + if (strcmp(stmt->role, "current_user") == 0) + { + roleid = GetUserId(); + tuple = SearchSysCache1(AUTHOID, ObjectIdGetDatum(roleid)); + if (!HeapTupleIsValid(tuple)) + ereport(ERROR, + (errcode(ERRCODE_UNDEFINED_OBJECT), + er

Re: [HACKERS] alter user/role CURRENT_USER

2014-10-20 Thread Rushabh Lathia
I gone through patch and here is the review for this patch: .) patch go applied on master branch with patch -p1 command (git apply failed) .) regression make check run fine .) testcase coverage is missing in the patch .) Over all coding/patch looks good. Few comments: 1) Any particular reaso

Re: [HACKERS] alter user set local_preload_libraries.

2014-10-10 Thread Fujii Masao
On Fri, Oct 10, 2014 at 5:36 PM, Kyotaro HORIGUCHI wrote: > Hello, I overlooked this thread. > >> On Mon, Sep 15, 2014 at 1:33 AM, Tom Lane wrote: >> > Peter Eisentraut writes: >> >> On 9/1/14 7:51 AM, Kyotaro HORIGUCHI wrote: >> >>> The attached patch simply changes the context for local_... to

Re: [HACKERS] alter user set local_preload_libraries.

2014-10-10 Thread Kyotaro HORIGUCHI
Hello, I overlooked this thread. > On Mon, Sep 15, 2014 at 1:33 AM, Tom Lane wrote: > > Peter Eisentraut writes: > >> On 9/1/14 7:51 AM, Kyotaro HORIGUCHI wrote: > >>> The attached patch simply changes the context for local_... to > >>> PGC_USERSET and edits the doc. > > > >> I had this ready to

Re: [HACKERS] alter user set local_preload_libraries.

2014-10-09 Thread Fujii Masao
On Mon, Sep 15, 2014 at 1:33 AM, Tom Lane wrote: > Peter Eisentraut writes: >> On 9/1/14 7:51 AM, Kyotaro HORIGUCHI wrote: >>> The attached patch simply changes the context for local_... to >>> PGC_USERSET and edits the doc. > >> I had this ready to commit, but then > >> Invent PGC_SU_BACKEND

Re: [HACKERS] alter user set local_preload_libraries.

2014-09-14 Thread Tom Lane
Peter Eisentraut writes: > On 9/1/14 7:51 AM, Kyotaro HORIGUCHI wrote: >> The attached patch simply changes the context for local_... to >> PGC_USERSET and edits the doc. > I had this ready to commit, but then > Invent PGC_SU_BACKEND and mark log_connections/log_disconnections > that way. >

Re: [HACKERS] alter user set local_preload_libraries.

2014-09-14 Thread Peter Eisentraut
On 9/1/14 7:51 AM, Kyotaro HORIGUCHI wrote: > The attached patch simply changes the context for local_... to > PGC_USERSET and edits the doc. I had this ready to commit, but then Invent PGC_SU_BACKEND and mark log_connections/log_disconnections that way. was committed in the meantime. Does

Re: [HACKERS] alter user set local_preload_libraries.

2014-09-01 Thread Kyotaro HORIGUCHI
Hello, > > I found this issue when trying per-pg_user (role) loading of > > auto_analyze and some tweaking tool. It is not necessarily set by > > the user by own, but the function to decide whether to load some > > module by the session-user would be usable, at least, as for me:) > > I think we c

Re: [HACKERS] alter user set local_preload_libraries.

2014-08-29 Thread Peter Eisentraut
On 8/28/14 9:01 AM, Kyotaro HORIGUCHI wrote: > I found this issue when trying per-pg_user (role) loading of > auto_analyze and some tweaking tool. It is not necessarily set by > the user by own, but the function to decide whether to load some > module by the session-user would be usable, at least,

Re: [HACKERS] alter user set local_preload_libraries.

2014-08-28 Thread Kyotaro HORIGUCHI
Hello, > On Thu, 2014-07-03 at 13:05 +0900, Kyotaro HORIGUCHI wrote: > > For the earlier than 9.4, no one seems to have considered > > seriously to use local_preload_library via ALTER statements so > > far. Only document fix would be enough for them. > > I think local_preload_libraries never actu

Re: [HACKERS] alter user set local_preload_libraries.

2014-08-26 Thread Peter Eisentraut
On Thu, 2014-07-03 at 13:05 +0900, Kyotaro HORIGUCHI wrote: > For the earlier than 9.4, no one seems to have considered > seriously to use local_preload_library via ALTER statements so > far. Only document fix would be enough for them. I think local_preload_libraries never actually worked sensibly

Re: [HACKERS] alter user set local_preload_libraries.

2014-08-14 Thread Kyotaro HORIGUCHI
Hello, I made a set of patches to fix this issue. The attached files are the followings, 0001_Add_PGC_BACKEND_USERSET_v0.patch: Add new GUC category PGC_BACKEND_USERSET and change local_preload_libraries to use it. 0002_dblink_follow_change_of_set_config_options_v0.patch: 0003_postgres_fdw_

Re: [HACKERS] alter user set local_preload_libraries.

2014-07-02 Thread Kyotaro HORIGUCHI
o <20408.1404329...@sss.pgh.pa.us> User-Agent: Mew version 6.5 on Emacs 22.2 / Mule 5.0 =?iso-2022-jp?B?KBskQjpnGyhCKQ==?= / Meadow-3.01-dev (TSUBO-SUMIRE) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I'm getting confused.. The

Re: [HACKERS] alter user set local_preload_libraries.

2014-07-02 Thread Tom Lane
Fujii Masao writes: > Agreed. I was also thinking we can set it per role, but got surprised > when I found that's impossible. Is this a problem of only > local_preload_libraries? I'm afraid that all PGC_BACKEND parameters > have the same problem. Well, there aren't that many PGC_BACKEND parameter

Re: [HACKERS] alter user set local_preload_libraries.

2014-07-02 Thread Fujii Masao
On Thu, Jul 3, 2014 at 3:53 AM, Tom Lane wrote: > Fujii Masao writes: >> On Wed, Jul 2, 2014 at 11:15 PM, Tom Lane wrote: >>> Kyotaro HORIGUCHI writes: postgres=# alter user horiguti2 set local_preload_libraries='libname'; ERROR: parameter "local_preload_libraries" cannot be set afte

Re: [HACKERS] alter user set local_preload_libraries.

2014-07-02 Thread Tom Lane
Fujii Masao writes: > On Wed, Jul 2, 2014 at 11:15 PM, Tom Lane wrote: >> Kyotaro HORIGUCHI writes: >>> postgres=# alter user horiguti2 set local_preload_libraries='libname'; >>> ERROR: parameter "local_preload_libraries" cannot be set after connection >>> start >> Hm ... it's kind of annoyin

Re: [HACKERS] alter user set local_preload_libraries.

2014-07-02 Thread Fujii Masao
On Wed, Jul 2, 2014 at 11:15 PM, Tom Lane wrote: > Kyotaro HORIGUCHI writes: >> postgres=# alter user horiguti2 set local_preload_libraries='libname'; >> ERROR: parameter "local_preload_libraries" cannot be set after connection >> start > > Hm ... it's kind of annoying that that doesn't work; i

Re: [HACKERS] alter user set local_preload_libraries.

2014-07-02 Thread Tom Lane
Kyotaro HORIGUCHI writes: > postgres=# alter user horiguti2 set local_preload_libraries='libname'; > ERROR: parameter "local_preload_libraries" cannot be set after connection > start Hm ... it's kind of annoying that that doesn't work; it's certainly not hard to imagine use-cases for per-user o

Re: [HACKERS] ALTER USER

2003-03-17 Thread Peter Galbavy
> 1. the userid isn't deleted or anything like that. > > 2. validuntil is only checked in password authentication methods; if you > are able to connect via a non-password auth method (eg IDENT) then it's > not checked. > > I've never been quite sure whether #2 is a bug or a feature, though. Withou

Re: [HACKERS] ALTER USER

2003-03-17 Thread Tom Lane
Bruno Wolff III <[EMAIL PROTECTED]> writes: > Is it just the password that expires or the account? The comment for > valid until says the password is valid until that time. However, one of > the examples says the account is valid until that time. Given the current implementation, I think it's corr

Re: [HACKERS] ALTER USER

2003-03-17 Thread Bruno Wolff III
Is it just the password that expires or the account? The comment for valid until says the password is valid until that time. However, one of the examples says the account is valid until that time. ---(end of broadcast)--- TIP 6: Have you searched our

Re: [HACKERS] ALTER USER

2003-03-16 Thread Alvaro Herrera
On Sun, Mar 16, 2003 at 12:36:25PM -0500, Tom Lane wrote: > I'm inclined to leave the code alone. But Alvaro is right that it'd be > good to point out the 'infinity' option in the CREATE USER and ALTER > USER man pages. (Doc patch please?) Attached. (Please correct if it's not good english.)

Re: [HACKERS] ALTER USER

2003-03-16 Thread Tom Lane
Rod Taylor <[EMAIL PROTECTED]> writes: > It may be worth while to change the default for valuntil to be > 'infinity'. NULL implies they will expire, we're just not sure when. This is not the only place in the system catalogs where NULL is effectively used to mean a default value that could also b

Re: [HACKERS] ALTER USER

2003-03-16 Thread Rod Taylor
> I see now that one can use this syntax to make a user valid forever, > though it is different than setting the value to NULL (as is when the > user hasn't got a validity defined). This should be mentioned in the > docs, I think. It may be worth while to change the default for valuntil to be 'in

Re: [HACKERS] ALTER USER

2003-03-16 Thread Alvaro Herrera
On Sun, Mar 16, 2003 at 07:37:26AM -0600, Bruno Wolff III wrote: > On Sat, Mar 15, 2003 at 22:38:13 -0400, > Alvaro Herrera <[EMAIL PROTECTED]> wrote: > > Hackers, > > > > One can alter a user to set a validity timestamp. However, unless one > > uses the ugly kludge of setting a date very far i

Re: [HACKERS] ALTER USER

2003-03-16 Thread Bruno Wolff III
On Sat, Mar 15, 2003 at 22:38:13 -0400, Alvaro Herrera <[EMAIL PROTECTED]> wrote: > Hackers, > > One can alter a user to set a validity timestamp. However, unless one > uses the ugly kludge of setting a date very far into the future, there's > no way to set this validity forever. There is an i

Re: [HACKERS] alter user problem

2002-12-19 Thread Christopher Kings-Lynne
You need to go:   ALTER USER "EDU" WITH PASSWORD '';   Since you have used an uppercase name, you will always need to double quote it.   Chris -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of postgresqlSent: Friday, 20 December 2002 10: