Re: Something I don't understand with the use of schemas

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Rod Taylor <pg(at)rbt(dot)ca>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Guillaume LELARGE <guillaume(dot)lelarge(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Something I don't understand with the use of schemas
Date: 2005-12-12 22:49:52
Message-ID: 20051212224952.GJ54639@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Dec 12, 2005 at 05:43:47PM -0500, Rod Taylor wrote:
> > > >>>I'd love to see something like SUDO ALTER USER ... SUDO REINDEX ... etc.
> > > >>>That would make it easy to do 'normal' work with a non-superuser
> > > >>>account.
>
> A sudo equivalent would be a version of psql that always connected to
> the database using super-user and allowed command execution based on a
> regular expression. Bit of a hack to say the least.

How is that at all what you're describing?

sudo gives you the ability to run a command as root, plain and simple.
IE:

sudo ls -la blah
sudo /usr/local/etc/rc.d/010.pgsql.sh stop
etc

Some SQL examples would be...

sudo CREATE USER ...
sudo UPDATE table SET ...

I have no idea what you're envisioning, but based on your description it
certainly doesn't sound like what I'm envisioning...
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-12-12 22:51:18 Re: space for optimalization: DISTINCT without index
Previous Message Tom Lane 2005-12-12 22:47:37 Re: Which qsort is used