Embedded text column versus referenced text - Mailing list pgsql-general

From Rikard Bosnjakovic
Subject Embedded text column versus referenced text
Date
Msg-id AANLkTi=oSej+KXoLTQ49TKWJLr_WERdPPRRZw4Sy+QCT@mail.gmail.com
Whole thread Raw
Responses Re: Embedded text column versus referenced text
Re: Embedded text column versus referenced text
List pgsql-general
I am in the design phase of a new db so I cannot test queries using
explain/analyze yet, but regarding performance, is there any
difference in doing this:

CREATE TABLE something (name text, age smallint, ...other columns...,
comment text);

compared to this:

CREATE TABLE comments (id serial primary key, comment text);
CREATE TABLE something (name text, age smallint, ...other columns...,
comment integer REFERENCES comments(id));

?

The comments field will be used here and there but I expect it will
most often be NULL.


--
- Rikard

pgsql-general by date:

Previous
From: "Gauthier, Dave"
Date:
Subject: Re: killing idle attaches without killing others
Next
From: Merlin Moncure
Date:
Subject: Re: Danger of idiomatic plpgsql loop for merging data