Re: UPDATE

From: c k <shreeseva(dot)learning(at)gmail(dot)com>
To: Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: UPDATE
Date: 2009-02-19 13:31:13
Message-ID: d8e7a1e30902190531x551b9142mdfee37677ff7488c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

1.5 GB RAM, Pentium dual core, single 80 GB disk, Windows XP sp3, PostgreSQL
8.3.6
a table is like following:
-- Table: accgroups

-- DROP TABLE accgroups;

CREATE TABLE accgroups
(
accgroupid serial NOT NULL,
accgroupidname character varying(150) NOT NULL DEFAULT ''::character
varying,
accgroupname character varying,
createdby integer DEFAULT 0,
createdtimestamp timestamp without time zone DEFAULT
('now'::text)::timestamp without time zone,
locked smallint,
lastmodifiedby integer DEFAULT 0,
lastmodifiedtimestamp timestamp without time zone,
remark character varying(255) DEFAULT NULL::character varying,
cobranchid integer DEFAULT 0,
.
.
.
.
againstid integer DEFAULT 0,
)
WITH (OIDS=FALSE);
This table has currently 1,65,000+ rows.
Query is fairly simple.
update accgroups set cobranchid=2 where cobranchid=1;
Thanks
CPKulkarni

On Thu, Feb 19, 2009 at 6:54 PM, Richard Huxton <dev(at)archonet(dot)com> wrote:

> > What can be done for such updates to make them faster?
>
> You're going to have to provide some sort of information before anyone
> can help you.
>
> You might want to start with: basic hardware details: ram, number of
> disks etc, O.S. version, PostgreSQL version, basic configuration changes
> you've made, sample queries that are slow along with explain analyse
> output (if it's not just a blanket update), table definitions...
>
> --
> Richard Huxton
> Archonet Ltd
>

In response to

  • UPDATE at 2009-02-19 13:15:04 from c k

Responses

  • Re: UPDATE at 2009-02-19 15:18:46 from Craig Ringer

Browse pgsql-general by date

  From Date Subject
Next Message Barbara Stephenson 2009-02-19 13:34:41 Re: Appending \o output instead of overwriting the output file
Previous Message Geoffrey 2009-02-19 13:27:32 Re: When adding millions of rows at once, getting out of disk space errors