From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: 許耀彰 <kpm906@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: Fwd: postgresql performance question
Date: Mon, 12 Feb 2018 18:55:37 +0100
Message-ID: <3f3e6ce4-96ac-5608-3aef-02ded0ccaa8e@2ndquadrant.com> (raw)
In-Reply-To: <CAD_D-c8sVaf40oUMw=N70mkZ904wxgRTFZzjCAW11H8j-ADDkw@mail.gmail.com>
References: <CAD_D-c_qReatJJJR28p9+UOKHYdFNmsG84sg0vm2EKuUwiuq8w@mail.gmail.com>
<CAD_D-c8sVaf40oUMw=N70mkZ904wxgRTFZzjCAW11H8j-ADDkw@mail.gmail.com>
On 02/11/2018 04:15 PM, 許耀彰 wrote:
> Dear Support Team,
> I create a table by command as listed as below:
> *CREATE TABLE public.log2*
> *(*
> * d3 text COLLATE pg_catalog."default"*
> *)*
> *WITH (*
> *
> *
> * OIDS = FALSE*
> *
> *
> *)*
> *
> *
> *TABLESPACE pg_default;*
>
> And then use command as listed as below to import data to log2 table
>
> *COPY log2 FROM '/home/anderson/0107.csv' CSV HEADER;*
>
> My purpose is to import log information to log2 table to analysis, but I
> found one situation : for example , I have 166856 records in log2 table,
> when I use select command to list data , it spent a lot time, can we
> adjust the situation ?
> *select * from log2 *
> Thanks for your kindly assistance.
Sorry for being annoying, but this mailing list is for bug reports, and
your post is clearly not one. Please, send it to pgsql-performance, more
people are watching that list and you're more likely to get help.
Furthermore, I strongly recommend reading this:
https://wiki.postgresql.org/wiki/Slow_Query_Questions
It may actually have answer to your question, and in case it does not it
lists things you need to include in your post. For example query plan or
information about the hardware/system would be very helpful.
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tomas.vondra@2ndquadrant.com, kpm906@gmail.com
Subject: Re: Fwd: postgresql performance question
In-Reply-To: <3f3e6ce4-96ac-5608-3aef-02ded0ccaa8e@2ndquadrant.com>
References: <CAD_D-c_qReatJJJR28p9+UOKHYdFNmsG84sg0vm2EKuUwiuq8w@mail.gmail.com> <CAD_D-c8sVaf40oUMw=N70mkZ904wxgRTFZzjCAW11H8j-ADDkw@mail.gmail.com> <3f3e6ce4-96ac-5608-3aef-02ded0ccaa8e@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox