pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Muhyiddin A.M Hayat <middink@indo.net.id>
To: Christopher Browne <cbbrowne@acm.org>
To: pgsql-sql@postgresql.org
Subject: Re: Debet-Credit-Balance Calculation
Date: Wed, 20 Apr 2005 20:50:48 +0800
Message-ID: <003f01c545a7$b7e3c5e0$1f00a8c0@middinks> (raw)
References: <001c01c544ff$bb94d650$1f00a8c0@middinks>
	<m3vf6iw35p.fsf@knuth.cbbrowne.com>

> There is an easy way to do this; write a plpgsql set returning
> function which adds the balance to the last column of the table.  That
> query will always have a cost in both time and memory proportional to
> the size of the table, and the memory cost may bite you as table size
> grows...
> -- 

Can you give me some example function which adds the balance to the last 
column of the table.

Thanks. 





view thread (7+ messages)  latest in thread

Message-ID: <003f01c545a7$b7e3c5e0$1f00a8c0@middinks>
Permalink:  ../003f01c545a7$b7e3c5e0$1f00a8c0@middinks/
Also on:    postgresql.org/message-id/003f01c545a7$b7e3c5e0$1f00a8c0@middinks

 · 

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-sql@postgresql.org
  Cc: middink@indo.net.id, cbbrowne@acm.org
  Subject: Re: Debet-Credit-Balance Calculation
  In-Reply-To: <003f01c545a7$b7e3c5e0$1f00a8c0@middinks>

* 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