Re: Compressed binary field

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <edsonrichter(at)hotmail(dot)com>,<pgsql-general(at)postgresql(dot)org>
Subject: Re: Compressed binary field
Date: 2012-09-12 12:16:38
Message-ID: 505036D7020000250004A23F@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Edson Richter wrote:
> Em 12/09/2012 00:37, Edson Richter escreveu:
>> Em 11/09/2012 14:59, Kevin Grittner escreveu:
>>> Edson Richter wrote:

>>>> [biggest relation was a table heap with 29321 pages]

>>>> [block size is 8 KB]

>>> So your biggest table is actually 229 MB. Something is not adding
>>> up. I can't see any way to reconcile your previous statements
>>> with this number. There also hasn't been any real explanation for
>>> the statement that you have 250000 files. There must be something
>>> which matters here which hasn't yet been mentioned. Any ideas?

>> I don't know why, look result of the following query (arquivo is
>> the bytea field):
>>
>> select count(*) from notafiscalarq where arquivo is not null;
>> count
>> --------
>> 715084

What is a count of active rows in that table supposed to show me?

> Look at the size (5100MB) of this table alone (got after Vacuum
> with PgAdmin 14):

Please show (copy/paste if possible) *exactly* how you arrived at
that number and *exactly* how you determined that this number
represented the size of a table and how you determined which table.
If the results you previously posted are from the same database, you
simply don't have a table heap that large.

-Kevin

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Herouth Maoz 2012-09-12 12:51:43 Is there a way to use "pack" in pl/perl without resorting to pl/perlu?
Previous Message Raymond O'Donnell 2012-09-12 11:19:27 Re: Displaying image from php script displays string