53

For example, from the EXPLAIN documentation:

EXPLAIN SELECT * FROM tenk1;

                         QUERY PLAN
-------------------------------------------------------------
 Seq Scan on tenk1  (cost=0.00..458.00 rows=10000 width=244)

What does width=244 mean?

0

1 Answer 1

53

This is the "Estimated average width (in bytes) of rows output by this plan node"

Basically each row returned will be 244 bytes.

See Explain for more details.

Sign up to request clarification or add additional context in comments.

4 Comments

Ah, it looks like the documentation for 8.1 (which I was reading) does not explain the meaning of width, but the documentation for 8.3 (which you linked to) does. That would explain why I didn't notice it.
@DavidWolever: you should not read the manual of outdated versions. Read the manual that corresponds to your version. Btw: 8.3 is going to be de-supported as well soon, so if you really use that you should prepare to update as soon as possible. Preferrably to 9.1
Lesson learned. I won't be grabbing the first version Google hands me in the future.
Pro tip: Always use the postgresql version you use in queries to google :).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.