Re: Clarify: default precision on timestamps is 6

2023-10-13 Thread Nathan Long
The expected behavior was not obvious to me. "By default, there is no explicit bound on precision" sounds more like "unlimited variable length", as on the 'text' character type. "By default, the bound on precision is 6 (that is, microsecond precision)" conveys that 'timestamp with timezone' means

Re: Clarify: default precision on timestamps is 6

2023-10-13 Thread Tom Lane
Kirk Parker writes: > On Fri, Oct 13, 2023 at 7:32 AM David G. Johnston < > david.g.johns...@gmail.com> wrote: >> That is precisely what a no default with maximum of six means. If we say >> the default is six that would imply storage of less precise values pads >> significant zeros until there ar

Re: unnest multirange, returned order

2023-10-13 Thread Daniel Fredouille
Hi, sorry it took me some time to reply. Yes, the patch is perfect if this is indeed the behavior. cheers Daniel Le jeu. 5 oct. 2023 à 02:50, Laurenz Albe a écrit : > On Wed, 2023-10-04 at 20:12 -0400, Daniel Fredouille wrote: > > unnest ( anymultirange ) → setof anyrange > > Expands a multira

Re: Clarify: default precision on timestamps is 6

2023-10-13 Thread Kirk Parker
On Fri, Oct 13, 2023 at 7:32 AM David G. Johnston < david.g.johns...@gmail.com> wrote: > On Friday, October 13, 2023, PG Doc comments form > wrote: > >> both of them round any precision >> beyond microseconds, and neither returns timestamps with greater precision >> than the value that was insert

Clarify: default precision on timestamps is 6

2023-10-13 Thread David G. Johnston
On Friday, October 13, 2023, PG Doc comments form wrote: > both of them round any precision > beyond microseconds, and neither returns timestamps with greater precision > than the value that was inserted. > That is precisely what a no default with maximum of six means. If we say the default is

Clarify: default precision on timestamps is 6

2023-10-13 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/16/datatype-datetime.html Description: https://www.postgresql.org/docs/current/datatype-datetime.html says: > time, timestamp, and interval accept an optional precision value p which specifi