[SQL] regarding grant option

2006-02-28 Thread AKHILESH GUPTA
hi all this is akhilesh from india.i just want to ask one thing regarding grant operation?? i am using pgsql 8.0 on ubuntu 5.10 linux. just tell me the procedure that how can i grant all permissions for a database to any of the other user??? i am using :- :->> grant all privileges on database

Re: [SQL] pg reserved words

2006-02-28 Thread Michael Glaesemann
On Feb 23, 2006, at 0:27 , Irina Gadassik wrote: I am trying to create a table freeze and it seems "freeze" is a reserved word, but I don't see it in the list. Also in a different table I cann't create a column freeze. http://www.postgresql.org/docs/current/interactive/sql-keywords- append

Re: [SQL] how to add primary key to existing table with multiple

2006-02-28 Thread Stephan Szabo
On Thu, 23 Feb 2006, Daniel Joo wrote: > I am trying to add another primary key to an existing table with two > other primary keys. I got the following error when I tried this > command: You only can have one primary key. The table you gave has a single primary key with two columns. Are you tr

Re: [SQL] grant select,... over schema

2006-02-28 Thread Michael James
GRANT ALL PRIVILEGES ON databaseName To username; Michael Lee James | Database Administrator d. 480-282-6043| c. 480-505-5802| f. 480-505-5801 [EMAIL PROTECTED] iCrossing, Inc. | Driving the Future of Advertising New York | Chicago | Scottsdale | San Francisco -Original Message- From: [EM

Re: [SQL] Slow update SQL

2006-02-28 Thread Bungsuputra Linan
Hi Ken, I used to have the same problem. In my computer, using date_part in WHERE clause will always slow down the system when the table has plenty of rows. My suggestion is try to change the query to: ... WHERE dxdate >= '2001-01-01'; I hope this helps. Regards, bungsu - Original Message

[SQL] dbLink Query

2006-02-28 Thread Richard C
Hi   When I execute the query:   SELECT *FROM dblink('dbname=Bas','SELECT id FROM person') AS t(a int)WHERE t.id > 9000 AND T.ID < 9050;   I receive the error message   ERROR:  function dblink("unknown", "unknown") does not exist   How do I install or setup the function dbLink so that I

[SQL] how to add primary key to existing table with multiple primary keys

2006-02-28 Thread Daniel Joo
Hi there,   I am trying to add another primary key to an existing table with two other primary keys.  I got the following error when I tried this command:   alter table extprobe2tissue ADD primary key (expid); ERROR:  multiple primary keys for table "extprobe2tissue" are not allowed  

[SQL] pg reserved words

2006-02-28 Thread Irina Gadassik
Hello, I need some help. I am trying to create a table freeze and it seems "freeze" is a reserved word, but I don't see it in the list. Also in a different table I cann't create a column freeze. However it is possible in MySQL and Ingres. Thank you, Irina ---(end of bro

Re: [SQL] ORDER BY with LTREE

2006-02-28 Thread Axel Straschil
Hello Michael! Below is a simple example using the data from your original message Thanks for the example, that realy helps me! Lg, AXEL. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [SQL] Slow update SQL

2006-02-28 Thread Ken Hill
bungsu, That does make the query work a bit faster. Thanks! On Mon, 2006-02-27 at 09:42 +0700, Bungsuputra Linan wrote: Hi Ken, I used to have the same problem. In my computer, using date_part in WHERE clause will always slow down the system when the table has plenty of rows. My suggestio

Re: [SQL] plsql / time statement

2006-02-28 Thread Steve Crawford
Daniel Caune wrote: Hi, Is there any option to set so that psql provides the execution time of each SQL statement executed? \timing (either as a manual command or as a default in your .psqlrc file). Cheers, Steve ---(end of broadcast)--- TI

[SQL] plsql / time statement

2006-02-28 Thread Daniel Caune
Hi,   Is there any option to set so that psql provides the execution time of each SQL statement executed?   Regards,   -- Daniel CAUNE Ubisoft Online Technology (514) 4090 2040 ext. 5418  

Re: [SQL] grant select,... over schema

2006-02-28 Thread chester c young
do not want to grant ALL PRIVILEGES to user, only SELECT - do not want PUBLIC to have any dml priveleges on this schema --- Michael James <[EMAIL PROTECTED]> wrote: > GRANT ALL PRIVILEGES ON databaseName To username; > > > is there any way to grant over all applicable objects in a schema, > >

[SQL] grant select,... over schema

2006-02-28 Thread chester c young
is there any way to grant over all applicable objects in a schema, > grant select on schema pop to public; <-- wrong without specifically granting the select on each table? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection