mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 22:31:18 +02:00
Fix more outdated comments
Same as in f5da3d8
but for write_relcache_init_file(), the comments
had gotten a bit wrong due to code added over time.
This commit is contained in:
parent
f5da3d85b9
commit
6c14fb17e4
12
src/backend/utils/cache/relcache.c
vendored
12
src/backend/utils/cache/relcache.c
vendored
@ -6530,34 +6530,34 @@ write_relcache_init_file(bool shared)
|
|||||||
HEAPTUPLESIZE + rel->rd_indextuple->t_len,
|
HEAPTUPLESIZE + rel->rd_indextuple->t_len,
|
||||||
fp);
|
fp);
|
||||||
|
|
||||||
/* next, write the vector of opfamily OIDs */
|
/* write the vector of opfamily OIDs */
|
||||||
write_item(rel->rd_opfamily,
|
write_item(rel->rd_opfamily,
|
||||||
relform->relnatts * sizeof(Oid),
|
relform->relnatts * sizeof(Oid),
|
||||||
fp);
|
fp);
|
||||||
|
|
||||||
/* next, write the vector of opcintype OIDs */
|
/* write the vector of opcintype OIDs */
|
||||||
write_item(rel->rd_opcintype,
|
write_item(rel->rd_opcintype,
|
||||||
relform->relnatts * sizeof(Oid),
|
relform->relnatts * sizeof(Oid),
|
||||||
fp);
|
fp);
|
||||||
|
|
||||||
/* next, write the vector of support procedure OIDs */
|
/* write the vector of support procedure OIDs */
|
||||||
write_item(rel->rd_support,
|
write_item(rel->rd_support,
|
||||||
relform->relnatts * (rel->rd_indam->amsupport * sizeof(RegProcedure)),
|
relform->relnatts * (rel->rd_indam->amsupport * sizeof(RegProcedure)),
|
||||||
fp);
|
fp);
|
||||||
|
|
||||||
/* next, write the vector of collation OIDs */
|
/* write the vector of collation OIDs */
|
||||||
write_item(rel->rd_indcollation,
|
write_item(rel->rd_indcollation,
|
||||||
relform->relnatts * sizeof(Oid),
|
relform->relnatts * sizeof(Oid),
|
||||||
fp);
|
fp);
|
||||||
|
|
||||||
/* finally, write the vector of indoption values */
|
/* write the vector of indoption values */
|
||||||
write_item(rel->rd_indoption,
|
write_item(rel->rd_indoption,
|
||||||
relform->relnatts * sizeof(int16),
|
relform->relnatts * sizeof(int16),
|
||||||
fp);
|
fp);
|
||||||
|
|
||||||
Assert(rel->rd_opcoptions);
|
Assert(rel->rd_opcoptions);
|
||||||
|
|
||||||
/* finally, write the vector of opcoptions values */
|
/* write the vector of opcoptions values */
|
||||||
for (i = 0; i < relform->relnatts; i++)
|
for (i = 0; i < relform->relnatts; i++)
|
||||||
{
|
{
|
||||||
bytea *opt = rel->rd_opcoptions[i];
|
bytea *opt = rel->rd_opcoptions[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user