473,403 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

How are NULLS stored on disk for PG 7.4?

Hi

How are column files in a table that have been assigned null stored on disk
in Postgresql 7.4?

Cheers
Arn
Nov 12 '05 #1
5 1507
Arnold Mavromatis wrote:
Hi

How are column files in a table that have been assigned null stored on disk
in Postgresql 7.4?


Each row has a bitmap showing all the NULL values on that row.

--
Bruce Momjian | http://candle.pha.pa.us
pg***@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 12 '05 #2
Le mar 13/01/2004 à 00:43, Bruce Momjian a écrit :
Arnold Mavromatis wrote:
Hi

How are column files in a table that have been assigned null stored on disk
in Postgresql 7.4?


Each row has a bitmap showing all the NULL values on that row.


Is it the same for PG 7.3?

Yannick
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 22 '05 #3
On Wed, 14 Jan 2004, Yannick Warnier wrote:
Le mar 13/01/2004 à 00:43, Bruce Momjian a écrit :
Arnold Mavromatis wrote:
Hi

How are column files in a table that have been assigned null stored on disk
in Postgresql 7.4?


Each row has a bitmap showing all the NULL values on that row.


Is it the same for PG 7.3?


Yes, Postgresql has done this for quite some time.
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 22 '05 #4
> On Wed, 14 Jan 2004, Yannick Warnier wrote:
Le mar 13/01/2004 à 00:43, Bruce Momjian a écrit :
> Arnold Mavromatis wrote:
> > Hi
> >
> > How are column files in a table that have been assigned null stored

on disk
> > in Postgresql 7.4?
>
> Each row has a bitmap showing all the NULL values on that row.


Is it the same for PG 7.3?


Yes, Postgresql has done this for quite some time.

My understanding is that Oracle has a field showing the size of the column
prior to each column. A column size of of zero means that the column is
null.

I assume that this is why Oracle is unable to make a distinction between a
null and a zero length string but that PostgreSQL can?

Vincent

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 22 '05 #5
Yannick Warnier wrote:
Le mar 13/01/2004 à 00:43, Bruce Momjian a écrit :
Arnold Mavromatis wrote:
> Hi
>
> How are column files in a table that have been assigned null stored on disk
> in Postgresql 7.4?


Each row has a bitmap showing all the NULL values on that row.


Is it the same for PG 7.3?


It has always been that way. But the bitmap is only there if there is at
least one NULL value. One bit in the tuple headers flags tells if there
is a bitmap or not.
Jan

--
#================================================= =====================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================= = Ja******@Yahoo.com #
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Trevor Best | last post by:
Is there a *simple* way to change a collumn from allowing null to not null? I just unchecked "allow nulls" in EM and the SQL it generates to do this one thing is astonishing, create table, drop...
0
by: Rhino | last post by:
I am working with SQL Functions in DB2 for Windows/Linux/UNIX (V8.2.1) and am having a problem setting input parameters for SQL Functions to null in the Development Center. My simple function,...
2
by: Rey | last post by:
Howdy all. My problem deals w/inserting nulls into database (SQL Svr 2K) for the datetime fields activityDate and followUpDate where nulls are allowed. >From the web form, the user can type...
1
by: RSH | last post by:
Im trying to create a stored procedure of the following code. I want to set it so that I have to send the first 4 variables (@DB, @BackUpFile,@TestDB,@RestoreFile). I am having trouble when i try...
2
by: Simon Harvey | last post by:
Hi everyone, I'm having a really simple problem - I can't seem to insert a null value into the database. When I do it tells me that the procedure expects the parameter and that I'm not providing...
6
by: dew | last post by:
I am using sql to modify data, using parameters. However, if I set the datatime to any other than a varchar, it bombs if the user enters a null value. How am I supposed to handle this. Set...
1
by: central_scrutinizer | last post by:
I have an ASP that has been working fine for several months, but it suddenly broke. I wonder if windows update has installed some security patch that is causing it. The problem is that I am...
5
by: John | last post by:
Hi I have a vb.net winform data app with sql server 2005 backend. The ID field in the tblClients table is an 'int' identity column that does not allow nulls. The problem is that when I try to...
0
by: csauer | last post by:
I am writing a program using visual basic.NET 2003 to be used to update and store data in a database I have stored in Access 2003. I am using a OdbcDataAdapter to generate my dataset, then using a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.