If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > postgres COPY function needed help.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-09-04, 04:06
vickr1z vickr1z is offline
Registered User
 
Join Date: Mar 2004
Location: manila
Posts: 9
postgres COPY function needed help.

im having this error on my script:
psqlolmap.sql:18: invalid command \.
psqlolmap.sql:36: invalid command \.

polmap.sql
Code:

\c polmap
BEGIN;

SET search_path = public, pg_catalog;

--
-- Data for TOC entry 315 (OID 761231)
-- Name: provinces; Type: TABLE DATA; Schema: public; Owner: dbadmin
--

COPY provinces (province_name, province_code, db_user, "timestamp") FROM
stdin;APAYAO 988100000 dbadmin 2004-01-27 06:48:19.458466
MOUNTAIN PROVINCE 984400000 dbadmin 2004-01-27 06:48:19.458466
KALINGA 983200000 dbadmin 2004-01-27 06:48:19.458466
IFUGAO 982700000 dbadmin 2004-01-27 06:48:19.458466
\.

--
-- Data for TOC entry 316 (OID 761238)
-- Name: municipalities; Type: TABLE DATA; Schema: public; Owner: dbadmin
--

COPY municipalities (municipality_name, municipality_code, db_user,
"timestamp") FROM stdin;
SAN MIGUEL 993907000 dbadmin 2004-01-27 06:48:19.464152
MALATE 993910000 dbadmin 2004-01-27 06:48:19.464152
CITY OF LAS PIÑAS 997601000 dbadmin 2004-01-27 06:48:19.464152
CITY OF PARAÑAQUE 997604000 dbadmin 2004-01-27 06:48:19.464152
PASAY CITY 997605000 dbadmin 2004-01-27 06:48:19.464152
SAN NICOLAS 993904000 dbadmin 2004-01-27 06:48:19.464152
NAVOTAS 997503000 dbadmin 2004-01-27 06:48:19.464152
TONDO 993901000 dbadmin 2004-01-27 06:48:19.464152
\.

-----------------------

what this mean: do i have to edit my script?? i just got this created from a
database dump (pg_dump -h 192.12.0.100 polmapdb > polmap.sql)

how can i fix my script so it would run correctly?? any idea will appreciate
very much..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On