import function's progress report

From: Quan Zongliang <quanzongliang(at)gmail(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org(dot)
Subject: import function's progress report
Date: 2008-12-31 07:14:47
Message-ID: 20081231152548.5159.4125B4E5@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi, all

This is a progress report about import function.
A screenshot with dialog test mode (/t) attached.
Only the file page's code is finished.

1. Target page:
Now it is blank.
Reserved for standalone version to select target database and table.

2. Source pages: file / Source / ODBC
Import from csv format file / other pgsql database / ODBC(for MS-Windows)
First, csv file will be supported. Remainders only in plan.

3. Columns page:
Set data format ( date & number), space trim and column's order
I plan to support express, user can input a pgsql express to treat data.

4. Options/Status/Others page:
Only some ideas:
Skip empty rows
Import rows match regex
Don't import rows match regex
Commit per (n) rows.
Some log options
Test insert with (n) rows before insert to DB
Generate insert statement to a file.
Stop when (n) errors
and so on.

Limited encoding can be Support, see attached file "encodinglist.txt".
ASCII, Japanese EUCJP/Shift_JIS and Chinese GB2312/Big5 had been tested.

-----------------------------------------------
Quan Zongliang
quanzongliang(at)gmail(dot)com
CIT Japan: http://www.cit.co.jp
CIT China: http://www.citbj.com.cn

Attachment Content-Type Size
image/jpeg 38.2 KB
encodinglist.txt application/octet-stream 2.2 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Quan Zongliang 2008-12-31 07:20:27 Re: import function's progress report
Previous Message Guillaume Lelarge 2008-12-30 18:36:04 Patch to handle connection limit for roles