pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: bhuvan Mitra <bhuvanrjb@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: problem with select *
Date: Mon, 24 Aug 2015 07:44:17 -0400
Message-ID: <55DB0391.7090004@dunslane.net> (raw)
In-Reply-To: <CAMmryP6hje58W78UnaC0-gyi1VqnmFAPfhAN_kE_d_VipbBq1w@mail.gmail.com>
References: <CAMmryP6hje58W78UnaC0-gyi1VqnmFAPfhAN_kE_d_VipbBq1w@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>



On 08/24/2015 03:04 AM, bhuvan Mitra wrote:
> Hello,
>
> I have a table with 12 columns and 20 Million rows. While writing the 
> table I do not find any problem but when reading that I have some 
> issues faced. When I perform a 'select * from table limit 14000000;' 
> (selecting 14million rows), it is working fine. If the limit value is 
> 15000000, it is throwing the error as 'out of memory'.
>
> If the query is 'select * from table' , The process is getting killed 
> by displaying the message 'killed'.
>
> Kindly tell me where it is going wrong. I have 6MB cache, 1.6GHz CPU, 
> linux 14.04 OS, 8GB RAM.
>
>


You should be using a cursor.

cheers

andrew



-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (4+ messages)

Message-ID: <55DB0391.7090004@dunslane.net>
Permalink:  ../55DB0391.7090004@dunslane.net/
Also on:    postgresql.org/message-id/55DB0391.7090004@dunslane.net

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: andrew@dunslane.net, bhuvanrjb@gmail.com
  Subject: Re: problem with select *
  In-Reply-To: <55DB0391.7090004@dunslane.net>

* 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