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

From: leaf_yxj <leaf_yxj(at)163(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: create one function to let other user execute vacuum command. got such an error.
Date: 2012-03-28 01:51:53
Message-ID: 1332899513749-5599318.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Lelarge 2012-03-28 06:44:26 Re: create one function to let other user execute vacuum command. got such an error.
Previous Message leaf_yxj 2012-03-28 00:48:05 Re: postgresql commit.