forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfcd210d
committed
Doc: improve explanation of type interval, especially extract().
The explanation of interval's behavior in datatype.sgml wasn't wrongexactly, but it was unclear, partly because it buried the lede aboutthere being three internal fields. Rearrange and wordsmith for moreclarity.The discussion of extract() claimed that input of type date washandled by casting, but actually there's been a separate SQL functiontaking date for a very long time. Also, it was mostly silent abouthow interval inputs are handled, but there are several field typesfor which it seems useful to be specific.Improve discussion of justify_days()/justify_hours() too.In passing, remove vertical space in some groups of examples,as there was little consistency about whether to have such spaceor not. (I only did this within the datetime functions section;there are some related inconsistencies elsewhere.)Per discussion of bug #18348 from Michael Bondarenko. Theremay be some code changes coming out of that discussion too,but we likely won't back-patch them. This docs-only patchseems useful to back-patch, though I only carried it back tov13 because it didn't apply easily in v12.Discussion:https://postgr.es/m/18348-b097a3587dfde8a4@postgresql.org1 parent489072a commitfcd210d
2 files changed
+96
-86
lines changedLines changed: 41 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2869 | 2869 |
| |
2870 | 2870 |
| |
2871 | 2871 |
| |
2872 |
| - | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
2873 | 2894 |
| |
2874 |
| - | |
2875 |
| - | |
| 2895 | + | |
| 2896 | + | |
2876 | 2897 |
| |
2877 | 2898 |
| |
2878 | 2899 |
| |
| |||
2922 | 2943 |
| |
2923 | 2944 |
| |
2924 | 2945 |
| |
2925 |
| - | |
2926 |
| - | |
2927 |
| - | |
2928 |
| - | |
2929 |
| - | |
2930 |
| - | |
2931 |
| - | |
2932 |
| - | |
2933 |
| - | |
2934 |
| - | |
2935 |
| - | |
2936 |
| - | |
2937 |
| - | |
2938 |
| - | |
2939 |
| - | |
2940 |
| - | |
2941 |
| - | |
2942 |
| - | |
2943 |
| - | |
2944 |
| - | |
2945 |
| - | |
2946 |
| - | |
2947 |
| - | |
2948 |
| - | |
2949 |
| - | |
2950 |
| - | |
2951 |
| - | |
2952 | 2946 |
| |
2953 | 2947 |
| |
2954 | 2948 |
| |
| |||
2960 | 2954 |
| |
2961 | 2955 |
| |
2962 | 2956 |
| |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
2963 | 2974 |
| |
2964 | 2975 |
| |
2965 | 2976 |
| |
|
0 commit comments
Comments
(0)