type of some table storage params on doc - Mailing list pgsql-hackers

From Atsushi Torikoshi
Subject type of some table storage params on doc
Date
Msg-id CACZ0uYFf_p9BpbjLccx3CA=eM1Hk2Te=ULY4iptGLUhL-JxCPA@mail.gmail.com
Whole thread Raw
Responses Re: type of some table storage params on doc  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Hi,

As far as I read the reloptions.c, autovacuum_vacuum_cost_delay,
autovacuum_vacuum_scale_factor and autovacuum_analyze_scale_factor
are the members of relopt_real, so their type seems the same, real.

But the manual about storage parameters[1] says two of their type
are float4 and the other is floating point.

  > autovacuum_vacuum_cost_delay, toast.autovacuum_vacuum_cost_delay (floating point)
  > autovacuum_vacuum_scale_factor, toast.autovacuum_vacuum_scale_factor (float4)
  > autovacuum_analyze_scale_factor (float4)

And the manual about GUC says all these parameters are floating
point.

  > autovacuum_vacuum_cost_delay (floating point)
  > autovacuum_vacuum_scale_factor (floating point)
  > autovacuum_analyze_scale_factor (floating point)

Also other members of relopt_real such as seq_page_cost,
random_page_cost and vacuum_cleanup_index_scale_factor are
documented as floating point.


I think using float4 on storage parameters[1] are not consistent
so far, how about changing these parameters type from float4 to
floating point if there are no specific reasons using float4?


Attached a patch.
Any thought?

[1]https://www.postgresql.org/docs/devel/sql-createtable.htm
[2]https://www.postgresql.org/docs/devel/runtime-config-autovacuum.html


Regards,
--
Torikoshi Atsushi
Attachment

pgsql-hackers by date:

Previous
From: Atsushi Torikoshi
Date:
Subject: comments on elements of xlogctldata
Next
From: Fujii Masao
Date:
Subject: Re: comments on elements of xlogctldata