Example code bug: destination->data

2022-11-08 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/15/xfunc-c.html Description: 38.10.2. Base Types in C-Language Functions In the last example of the section, this line appears: memcpy(destination->data, buffer, 40); For me, this gave the

Possibly Incorrect Data Return

2022-11-08 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/15/tutorial-agg.html Description: Hello: I am working through the tutorial and the Doc page says the row count is 5 but my results show 0 records. Of course, I may be doing something wrong, t

Re: Example code bug: destination->data

2022-11-08 Thread Tom Lane
PG Doc comments form writes: > 38.10.2. Base Types in C-Language Functions > In the last example of the section, this line appears: > memcpy(destination->data, buffer, 40); > For me, this gave the following error: > error: ‘text’ {aka ‘struct varlena’} has no member named ‘data’ > After tracking

Re: Possibly Incorrect Data Return

2022-11-08 Thread Tom Lane
PG Doc comments form writes: > Hello: I am working through the tutorial and the Doc page says the row count > is 5 but my results show 0 records. Of course, I may be doing something > wrong, too: > jwjwj=# SELECT city, max(temp_lo), count(*) FILTER (WHERE temp_lo < 30) > FROM weather > GR

Re: Usability ideas: text width and headers that are links

2022-11-08 Thread Maciek Sakrejda
On Mon, Nov 7, 2022 at 1:41 AM Alvaro Herrera wrote: > On 2022-Oct-21, Niels Bom wrote: > > Setting a max-width on regular textual content is good for > > readability, which in turn increases accessibility. See this W3C a11y > > documentation (1) and an a11y page by the US government (2) for more