![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Karsten Wutzke wrote: Is it because of the SQL standard, that PostgreSQL doesn't have a one- byte type, too? I didn't check, but I don't think so. That would be surprising. It really doesn't contain one... Oh, what I meant is that I don't think that the SQL Standard *forbids* it. |
#12
| |||
| |||
|
|
Yes, I just meant internally. Since I don't have a PostgreSQL running anywhere, could you find out for me how many bytes are occupied by a BOOLEAN, please? |
#13
| |||
| |||
|
|
Karsten Wutzke, 08.09.2009 11:45: Yes, I just meant internally. Since I don't have a PostgreSQL running anywhere, could you find out for me how many bytes are occupied by a BOOLEAN, please? There is a pretty cool new feature that makes it into a lot of products nowadays. It's called "The Manual" and most of the time it explains how a piece of software works. But - what's even better - most of the times this "manual" thing is available online, so one doesn't need to install the corresponding product. Pretty nifty if you ask me. Postgres follows this trend and suprsingly enough your question is answered directly in the documentation of the boolean datatype: http://www.postgresql.org/docs/curre...e-boolean.html Regards Thomas |
#14
| |||
| |||
|
|
Is it because of the SQL standard, that PostgreSQL doesn't have a one- byte type, too? I didn't check, but I don't think so. That would be surprising. It really doesn't contain one... Oh, what I meant is that I don't think that the SQL Standard *forbids* it. Hmmm I don't really understand this sentence. What do you mean by it? Because the SQL standard doesn't include a one-byte, it doesn't forbid it? :-S |
#15
| |||
| |||
|
|
( Everything answered. Though the facts are a little strange. No one- byte integral type, but booleans as one-byte in storage... |
![]() |
| Thread Tools | |
| Display Modes | |
| |