Search Postgresql Archives

create one function to let other user execute vacuum command. got such an error.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



create one function to let other user execute vacuum command. got such an
error. Please help. Thanks. Regards . Grace

rrp=> create function vacuum_f ( tablename char(100))                          
 Returns char(100) AS $$                                                           
vacuum tablename;                                                             
$$ Language plpgsql security definer;
ERROR:  syntax error at or near "vacuum"
LINE 3:   vacuum tablename;
          ^
rrp=> 

--
View this message in context: http://postgresql.1045698.n5.nabble.com/create-one-function-to-let-other-user-execute-vacuum-command-got-such-an-error-tp5599318p5599318.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux