Nulls Not Distinct in Unique Indexes secton

2023-03-14 Thread Kirk Parker
The Unique Indexes section ( https://www.postgresql.org/docs/15/indexes-unique.html) does not mention the new NULLS [ NOT ] DISTINCT capability of indexes ( https://www.postgresql.org/docs/15/sql-createindex.html), and it probably should. Specifically, it has the exact wording from previous versio

Re: Change "two" to "three" for decades of development in history

2023-06-22 Thread Kirk Parker
> > The following documentation comment has been logged on the website: > > > > Page: https://www.postgresql.org/docs/15/history.html > > Description: > > > > Hi, > > > > In https://www.postgresql.org/docs/current/history.html it is written > "With > > over two decades of development behind it". >

Re: `pg_restore --if-exists` clarification

2023-09-28 Thread Kirk Parker
On Thu, Sep 28, 2023, 05:52 PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/16/app-pgrestore.html > Description: > > Good Morning, > > In the `pg_restore` docs > (https://www.postgresql.org/docs/current/ap

Typo in PL/pgSQL trigger Example 43.4?

2023-10-07 Thread Kirk Parker
The PL/pgSQL page on triggers ( https://www.postgresql.org/docs/16/plpgsql-trigger.html ) contains the following example (I'm excerpting only the essential parts here): Example 43.4. A PL/pgSQL Trigger Function for Auditing ... CREATE TABLE emp_audit( operation char(1) NOT NULL

Re: Typo in PL/pgSQL trigger Example 43.4?

2023-10-08 Thread Kirk Parker
On Sat, Oct 7, 2023 at 1:22 PM Tom Lane wrote: > "David G. Johnston" writes: > > On Sat, Oct 7, 2023 at 11:11 AM Kirk Parker wrote: > >> INSERT INTO emp_audit SELECT 'D', now(), user, OLD.*; -- <= ARGUMENT IN > QUESTION > >> The emp_aud

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

Re: Possible spelling errors

2024-01-31 Thread Kirk Parker
On Wed, Jan 31, 2024, 23:10 PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/16/auth-username-maps.html > Description: > > Hello. > I am not sure, but 'can be include directives' looks very strange to me: >

Behavior of ON DELETE CASCADE in CTEs

2024-09-04 Thread Kirk Parker
It appears that in With-queries (CTE) the ON CASCADE DELETE deletions happen at the very end of the entire statement. I have two questions about this: (1) Is this a correct observation? (2) Is this intentional behavior, or only an accident of the implementation? I can't find anything in the docs

Re: Behavior of ON DELETE CASCADE in CTEs

2024-09-04 Thread Kirk Parker
> The sub-statements in WITH are executed concurrently That much I did get from the docs. Given each sub-statement is qualified by the RETURNING results of the previous one, that should at least guarantee the completeness of each query regardless of the order in which individual rows are affect

Implicit type conversion -- where documented?

2022-11-10 Thread Kirk Parker
I came across what seems like anomalous behavior regarding implicit conversion from a numeric type to text. You can write: select 3.1416 || '?'; and the number implicitly converts to text and concatenates just fine, but writing: select trim(3.1416); fails with an error message. This se

Re: Ambiguity in IS JSON description and logic

2025-04-05 Thread Kirk Parker
On Thu, Mar 20, 2025 at 7:08 AM Kirk Parker wrote: > > On Thu, Mar 20, 2025 at 2:46 AM PG Doc comments form < > nore...@postgresql.org> wrote: > >> The following documentation comment has been logged on the website: >> >> Page: https://www.postgr

Re: 3.3. Foreign Keys

2025-03-11 Thread Kirk Parker
On Tue, Mar 11, 2025, 02:37 PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/17/tutorial-fk.html > Description: > > While going through the documentation in a sequential manner, attempting to > create TABLE

Re: Ambiguity in IS JSON description and logic

2025-04-04 Thread Kirk Parker
On Thu, Mar 20, 2025 at 2:46 AM PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/17/functions-json.html > Description: > > On the manual page > https://www.postgresql.org/docs/current/functions-json.html, i