[HACKERS] problem with copy command

2001-04-10 Thread Jaruwan Laongmal
dear all, I currently using postgresql v7.0.3 when i import text file to table with command "copy tablename from '/tmp/a.txt'; and it shows "copy: line 20, Cannot insert a duplicate key into unique index testpri_pk" ,then it exits with doing nothing. I want to ignore this errors and continue copy

[HACKERS] why the DB file size does not reduce when 'delete' the data in DB?

2001-03-02 Thread Jaruwan Laongmal
I had deleted a very large number of records out of my SQL table in order to decrease the harddisk space. But after I use command 'ls -l /usr/local/pgsql/data/base/', it is found that the size of concerning files do not reduce due to the effect of 'delete' SQL command. What should I do if I woul

[HACKERS] ask for help !!! (emergency case)

2001-02-23 Thread Jaruwan Laongmal
dear all I hava 2 problems about view 1. i can't insert into view 2. i can't create view with union I try to insert into view as following create table t1 (id int,name varchar(12) check(id<=10)); create table t2 (id int,name varchar(12) check(id>10)); create view v1 as select * from t1,t2; insert

[SQL] How to modify type in table?

2001-02-05 Thread Jaruwan Laongmal
Dear Sir. Would you like to inform me how to modify type in table? For example , I define type as varchar(14) , but I want to modify to varchar(120). How to do this.   Thank you so much Jaruwan

[SQL] Emergency case: Postgres problems

2001-02-05 Thread Jaruwan Laongmal
Dear Sir,   I  will highly appreciated if anyone could inform me how to solve the following problems in Postgres. Specifically, sometimes there  are the following messages informed by postgres.   NOTICE:  Message from PostgreSQL backend: