Skip site navigation (1) Skip section navigation (2)

Re: Large databases, performance

From: Manfred Koizar <mkoi-pg(at)aon(dot)at>
To: shridhar_daithankar(at)persistent(dot)co(dot)in
Cc: pgsql-hackers(at)postgresql(dot)org,pgsql-general <pgsql-general(at)postgresql(dot)org>,pgsql-performance(at)postgresql(dot)org
Subject: Re: Large databases, performance
Date: 2002-10-09 08:00:03
Message-ID: a2n7qu0qen2ne1chalomdgt5n1etgb4uk3@4ax.com (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackerspgsql-performancepgsql-sql
On Mon, 07 Oct 2002 15:07:29 +0530, "Shridhar Daithankar"
<shridhar_daithankar(at)persistent(dot)co(dot)in> wrote:
>Only worry is database size. Postgresql is 111GB v/s 87 GB for mysql.

Shridhar,

here is an implementation of a set of user types: char3, char4,
char10.  Put the attached files into a new directory contrib/fixchar,
make, make install, and run fixchar.sql through psql.  Then create
your table as
	CREATE TABLE tbl (
	type		int,
	esn		char10,
	min		char10,
	datetime	timestamp,
	opc0		char3,
	...
	rest		char4,
	field0		int,
	field1		char4,
	...
	)

This should save 76 bytes per heap tuple and 12 bytes per index tuple,
giving a database size of ~ 76 GB.  I'd be very interested how this
affects performance.

Code has been tested for v7.2, it crashes on v7.3 beta 1.  If this is
a problem, let me know.

Servus
 Manfred

Attachment: README.fixchar
Description: text/plain (2.7 KB)
Attachment: fixcharNN.c.in
Description: text/plain (1.4 KB)
Attachment: Makefile
Description: text/plain (490 bytes)
Attachment: fixcharNN.sql.in
Description: text/plain (3.4 KB)

In response to

Responses

pgsql-performance by date

Next:From: Shridhar DaithankarDate: 2002-10-09 08:07:13
Subject: Re: Large databases, performance
Previous:From: Josh BerkusDate: 2002-10-09 05:22:37
Subject: Re: What does this tell me?

pgsql-hackers by date

Next:From: Shridhar DaithankarDate: 2002-10-09 08:07:13
Subject: Re: Large databases, performance
Previous:From: Bruce MomjianDate: 2002-10-09 05:35:47
Subject: Re: inline newNode()

pgsql-sql by date

Next:From: Shridhar DaithankarDate: 2002-10-09 08:07:13
Subject: Re: Large databases, performance
Previous:From: Josh BerkusDate: 2002-10-09 04:49:18
Subject: Re: Temporary tables and indexes

pgsql-general by date

Next:From: Shridhar DaithankarDate: 2002-10-09 08:07:13
Subject: Re: Large databases, performance
Previous:From: Erwan DUROSELLEDate: 2002-10-09 07:30:37
Subject: Rép. : Re: How to find out about index

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group