Adrian, Thanks. Even I try use '' to quote the character. I still get the error as follows : rrp=> truncate table t1; TRUNCATE TABLE rrp=> select truncate_t('t1'); ERROR: table "t1" does not exist Thanks. Grace -- View this message in context: http://postgresql.1045698.n5.nabble.com/Please-help-me-to-take-a-look-of-the-erros-in-my-functions-Thanks-tp5613507p5615292.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