thanks for reply mickaelk.
i want to copy the database to my local PC postgres server..
i have see how to do it now, by issuing the command:
psql -U vvbuen -f polmap_akbayan.sql polmap_akbayan
but then i have this erorrs while the script was running and building for my polmap_akbayan database..
NOTICE: CREATE TABLE will create implicit sequence 'cc_encodersee_cocv_id_seq' for SERIAL column 'cc_encodersee_2003_cocv_id_seq.cc_encodersee_id'
ERROR: language 'plpgsql' does not exist
ERROR: Namespace 'gac_old' does not exist
ERROR: REVOKE: function get_rate(character varying) does not exist
ERROR: GRANT: function get_rate(character varying) does not exist
do u also have idea about the error on REVOKE: function get_rate?
this are some line content of my sql script:
-- TOC entry 303 OID (4720023)
-- Name get_rate (character varying); Type: function; Schema: public; Owner: vvbuen
CREATE FUNCTION get_rate (character varying) RETURNS numeric;
table_name_ ALIAS FOR $1;
rate_value_ NUMBERIC ;
SELECT encoding_rate into rate_value_ FROM encoding_rates WHERE table_name = table_name_ ;
LANGUAGE plpgsql STRICT;
-- TOC entry 304 OID (4720023)
-- Name: get_rate (character varying); Type: ACL; Schema: public; Owner: vvbuen
REVOKE ALL ON FUNCTION rate_value (character varying) FROM PUBLIC;
GRANT AL ON FUNCTION rate_value (character varying) TO PUBLIC;
is the error caused by the plpgsql itself? i dont know about anything on plpgsql. how can i setup this?
Hoping again someone could give me a helping hand... thanks in advance.