Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gVBV6-0000Vz-GA for pgsql-general@arkaria.postgresql.org; Fri, 07 Dec 2018 08:28:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gVBV3-00037Q-MN for pgsql-general@arkaria.postgresql.org; Fri, 07 Dec 2018 08:28:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gVBV2-00034E-IQ for pgsql-general@lists.postgresql.org; Fri, 07 Dec 2018 08:28:41 +0000 Received: from nh604-vm13.bullet.mail.ssk.yahoo.co.jp ([182.22.90.70]) by makus.postgresql.org with smtp (Exim 4.89) (envelope-from ) id 1gVBUp-0002ct-M3 for pgsql-general@lists.postgresql.org; Fri, 07 Dec 2018 08:28:35 +0000 Received: from [182.22.66.103] by nh604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 07 Dec 2018 08:28:19 -0000 Received: from [182.22.91.206] by t601.bullet.mail.ssk.yahoo.co.jp with NNFMP; 07 Dec 2018 08:28:19 -0000 Received: from [127.0.0.1] by omp609.mail.ssk.yahoo.co.jp with NNFMP; 07 Dec 2018 08:28:19 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 752644.24366.bm@omp609.mail.ssk.yahoo.co.jp X-YMail-OSG: CV5OcNMVM1n7Pw9WG37eo6.f2GHH4S7TqF5DoCGgXaCT7FyXAeMEdRxzvDfuqGR PHRnZgi5iHNSBAlh_Npw_VrQ5ig8tJ5kTHmySAF.B0qLSuyDGA92UXT3ooo0Gj.oypOQ4NGmyKoL fFw16elDQLkfBLNC6QKD_p9mXCyaWERDx8AU8ezXjrPbh0osa7mIZU9UuJJORzWW0I17COBYxNh5 tGq8h.9BfrLYRAfyspnQWnVg1z1CCFbzJodF2AyqzxXrGUNNZMszN8PiH.C95VBB6V9_el4QC1sa aa3wu4Mj.xOO2HFHXLOKuYZK33NZ5MtYiw7Iv1fongfZ7w1GgYeTAtPWOLHS.az2pnV7ipXdlEBW XOM9IPIM09K4a0eM.i7mTSB3y4AsyApTBP75pj1NtPOBOQBOG.TCAm_491DSETJMFu0Wa_7fPUjj lnd3pZtS26gs2kmJe8GXKf3TYBVeoTaNugXV7bKYekGZKLsPifHnYS3jlm_rzIZGQbzLqmBh0pTl f3A7Sq.pPKpXCtja.tjCoVsvqrJp2xNqHAEGqYvjc6H6pDab7egUjHxo1sBqXEZTk6cGrGcTnBiX Ez4mRON0xNaEiOJlZUj9UkwCx0SPmBc5Z.1TICVg- Received: from jws700005.mail.kks.yahoo.co.jp by sendmailws508.mail.kks.yahoo.co.jp; Fri, 07 Dec 2018 17:28:19 +0000; 1544171299.098 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1544171299; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type; bh=fRNYfdnhcXGBJm79QN87osB2S4p7hzbYOqJtfB7BgSM=; b=Fej4uCXfqgUv0h8YernYIdKA1XAc2EmhaeM1OFPZ9m++xixTSYMeZcg+luVW0sQr nEFHXdmvpd1eDXxK67lcgbhpRf2dC2JMfcoFVJN2QT6HyClyrG05ddZ180ky0Fpcp4K b4gBNYeg1MDpnBI1HS3oyCRFENR/fT8Tqu0Iqan8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:In-Reply-To:References:MIME-Version:Content-Type; b=t7Z1NNpjFwaBW88heIggeqMrS3gUJKi9oYhSPc4KPxJ7fxVPXaxDoHKKAcvGsd7F IRpQJbJcoxXshMnygvQ1o8WaOujN8x2sQIETOaN+iaeM7Y7pBjOXQo/H9xnRAnGfUiD wALpOvYZxdLKu4lBE1evovYek0lM+I1qw76houn0=; X-yjpVirusScan: Scanned Date: Fri, 7 Dec 2018 17:28:18 +0900 (JST) From: Reply-To: To: rob stone , Adrian Klaver , "pgsql-general@lists.postgresql.org" Message-ID: <1078893091.227120.1544171298546.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: <5e4cd2243e4e89afdad1ab7fb503825084f771ab.camel@gmail.com> References: <1892755171.196556.1544154847195.JavaMail.yahoo.ref@mail.yahoo.co.jp> <1892755171.196556.1544154847195.JavaMail.yahoo@mail.yahoo.co.jp> <1c54581d-541d-10d9-138c-55b87ecded2c@aklaver.com> <5e4cd2243e4e89afdad1ab7fb503825084f771ab.camel@gmail.com> Subject: Re: Importing tab delimited text file using phpPgAdmin 5.1 GUI MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_227119_928674027.1544171298542" Content-Length: 8540 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_227119_928674027.1544171298542 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Adrian, Rob! Thank you for the comments. Oh, yes, I forgot to mention that I am using Postgresql version 9.6.I had r= ead somewhere that last supported version was 9.3 or something, could be 9.= 2 as you say. I wanted to use phpPgAdmin, that's why I went back to 9.6 even if I had ins= talled ver. 10 first.But if the phpPgAdmin=C2=A0quotes identifiers by defau= lts, I will need to look for some other ways. Strictly speaking, I don't need to use the phpPgAdmin, but I am trying to f= ind a GUI way to upload a file quickly (the file has thousands of records.) Now, I am using pyDev in Eclipse to insert records, but I need to use a web= -based click and upload. If I could find a php version of my python code that would be great!My Pyth= on code: cur =3D conn.cursor() with io.open(fileName,'r',encoding=3D'utf8') as f:=C2=A0 =C2=A0 next(f)=C2= =A0 # Skip header row.=C2=A0 =C2=A0 cur.copy_from(f, tableName, sep=3D'\t')= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0conn.commit()cur.close()f.cl= ose() I have found PHP samples for line by line read and insert, but that will be= too slow for me. Cheers!=C2=A0 ----- Original Message ----- From: rob stone To: Adrian Klaver ; s400t@yahoo.co.jp; "pgsql-g= eneral@lists.postgresql.org" =20 Date: 2018/12/7, Fri 16:47 Subject: Re: Importing tab delimited text file using phpPgAdmin 5.1 GUI =20 Hello, On Thu, 2018-12-06 at 21:29 -0800, Adrian Klaver wrote: > On 12/6/18 7:54 PM, s400t@yahoo.co.jp wrote: >=20 > Most GUI tools I am familiar with quote identifiers by default. > > How/where can I tell the phpPgAdmin not to add that extra "" around > > the=20 > > field name? >=20 > I don't know. I have been under the impression that phpPgAdmin was > no=20 > longer maintained/in use. >=20 > You might have more luck here: >=20 > https://sourceforge.net/p/phppgadmin/discussion/115884=20 >=20 > >=20 > > Thanks for reading and suggestions. >=20 >=20 If you look at phppgadmin on sourceforge, the tarball files are all dated April 15th., 2013. It appears to have stalled at Postgres version 9.2. I doubt if it will run on versions 10 or 11. Cheers, Rob =20 ------=_Part_227119_928674027.1544171298542 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello Adrian, Rob!

Thank you for the comments.

Oh, yes, I forgot to mention th= at I am using Postgresql version 9.6.
I had read somewhere that last supported version was 9.3 or s= omething, could be 9.2 as you say.

<= /div>
I wanted to use phpPgAdmin, that's why I went back to 9.6 = even if I had installed ver. 10 first.
But if the p= hpPgAdmin quotes identifiers by defaults, I will need to look f= or some other ways.

Strictly = speaking, I don't need to use the phpPgAdmin, but I am trying to find a GUI= way to upload a file quickly (the file has thousands of records.)

Now, I am using pyDev in Eclip= se to insert records, but I need to use a web-based click and upload.

If I could find a php versi= on of my python code that would be great!
My Python code:=

cur =3D conn.cursor()=

with io.open(fileName,'r',e= ncoding=3D'utf8') as f:
    next(f)  # = Skip header row.
    cur.copy_from(f, tableN= ame, sep=3D'\t')
          &n= bsp; 
conn.commit()
cur.clos= e()
f.close()


I have found PHP samples for line by line = read and insert, but that will be too slow for me.
Cheers!
 



<= font size=3D"2" face=3D"Arial"> ----- Original Message -----=
From: r= ob stone <floriparob@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.= com>; s400t@yahoo.co.jp; "pgsql-general@lists.postgresql.org" <pgsql-= general@lists.postgresql.org>
Date: 2018/12/7, Fri 16:47
= Subject: Re: = Importing tab delimited text file using phpPgAdmin 5.1 GUI
<= /font>

Hello,

On Thu, 2018-12-06 at= 21:29 -0800, Adrian Klaver wrote:
> On 12/6/18 7:54 PM, s400t@yahoo= .co.jp wrote:
>
> Most GUI tools I am familiar with quote = identifiers by default.
> > How/where can I tell the phpPgAdmin no= t to add that extra "" around
> > the
> > field name?>
> I don't know. I have been under the impression that phpPgAdm= in was
> no
> longer maintained/in use.
>
> You m= ight have more luck here:
>
> https://sourceforge.ne= t/p/phppgadmin/discussion/115884
>
> >
> > T= hanks for reading and suggestions.
>
>

If you look at = phppgadmin on sourceforge, the tarball files are all
dated April 15th., = 2013.
It appears to have stalled at Postgres version 9.2.
I doubt if = it will run on versions 10 or 11.

Cheers,
Rob




=

------=_Part_227119_928674027.1544171298542--