why do we have rd_istemp?
why do we have rd_istemp?
От:
Robert Haas <robertmhaas@gmail.com>
Дата:
Given "Relation rel", it looks to me like rel->rd_rel->relistemp will always give the same answer as rel->rd_istemp. So why have both? ...Robert
Re: why do we have rd_istemp?
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Robert Haas writes: > Given "Relation rel", it looks to me like rel->rd_rel->relistemp will > always give the same answer as rel->rd_istemp. So why have both? Might be historical --- relistemp is pretty new. regards, tom lane
Re: why do we have rd_istemp?
От:
Bruce Momjian <bruce@momjian.us>
Дата:
Tom Lane wrote: > Robert Haas writes: > > Given "Relation rel", it looks to me like rel->rd_rel->relistemp will > > always give the same answer as rel->rd_istemp. So why have both? > > Might be historical --- relistemp is pretty new. Is this a TODO or something we want to clean up? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + None of us is going to be here forever. +
Re: why do we have rd_istemp?
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Bruce Momjian writes: > Tom Lane wrote: >> Robert Haas writes: >>> Given "Relation rel", it looks to me like rel->rd_rel->relistemp will >>> always give the same answer as rel->rd_istemp. So why have both? >> >> Might be historical --- relistemp is pretty new. > Is this a TODO or something we want to clean up? Doesn't strike me that it's worth the amount of code that would have to change. rd_istemp is known in a lot of places. Replacing it with a double indirection doesn't seem attractive anyway. regards, tom lane