Re: information_schema.tables table broken in versions 13+

2021-10-23 Thread Tom Lane
PG Doc comments form writes: > The table on information_schema.tables documentation page is broken after > version 12. > Instead of three columns in header and body all text is packed inside one. That's an intentional change. regards, tom lane

Re: Opclass name

2021-10-23 Thread Tom Lane
just this one mistake. regards, tom lane

Re: ORDER BY in materialized view example?

2021-11-29 Thread Tom Lane
sed in the docs, and with markup). Pushed, thanks for preparing the patch. regards, tom lane

Re: Manua correction

2021-07-20 Thread Tom Lane
Bruce Momjian writes: > On Thu, Jul 15, 2021 at 11:12:38PM -0400, Tom Lane wrote: >> At least two of these changes are flat out wrong. The places >> that explicitly mention "substring(s)" are not doing so because >> we failed to think about what that meant. >

Re: Link t the souce code

2021-07-20 Thread Tom Lane
postgresql-version under the current ... Admittedly, someone who doesn't grok that version is a variable might be confused initially, but I think they'd soon figure it out after seeing the file names on the server. regards, tom lane

Re: Link t the souce code

2021-07-21 Thread Tom Lane
On the whole though, I'm having qualms about recommending this in this particular spot, rather than back in Appendix I. Seems like the wrong audience is going to be reading this chapter. regards, tom lane

Re: Link t the souce code

2021-07-21 Thread Tom Lane
close enough to universal that we don't need to be pedantic about it. regards, tom lane

Re: Link t the souce code

2021-07-21 Thread Tom Lane
Alvaro Herrera writes: > On 2021-Jul-21, Tom Lane wrote: >> I'm having qualms about recommending this in this particular spot, >> rather than back in Appendix I. Seems like the wrong audience is >> going to be reading this chapter. > Well, we can remove that first parag

Re: Link t the souce code

2021-07-21 Thread Tom Lane
hat you chose the .bz2 file instead of the .gz one. regards, tom lane

Re: user-defined function in Perl or Tcl ???

2021-07-16 Thread Tom Lane
t thought about it. Of the options we provide in the core distro, plpython is less suitable because it only comes in an untrusted form (for lack of any workable sandboxing feature in Python). So plperl or pltcl is what there is. regards, tom lane

Re: Set-Returning functions in a select list

2021-07-27 Thread Tom Lane
oposal though. In the meantime I'm not much on board with sprinkling cross-references into random places, if only because those references will be pointing to the wrong place when/if this refactoring does happen. regards, tom lane

Re: Manua correction

2021-07-15 Thread Tom Lane
what that meant. regards, tom lane

Re: "(process)" is missing for some terms about process in glossary

2022-01-07 Thread Tom Lane
t; is the patch to add "(process)" to them. > - Auxiliary process > - Startup process > - WAL receiver I think "Auxiliary process (process)" is redundant to the point of being silly. +1 for addiing it to "WAL receiver", though, since that's not obviously a process. regards, tom lane

Re: missing a white space in the last sentence of 51.6. Executor

2022-01-17 Thread Tom Lane
me page are also rendered with less-than-usual spacing around them (to my eye anyway); though this is the only one that looks like it has no space at all. regards, tom lane

Re: Fir mkdir command in "Short Version" for installing from source

2022-03-14 Thread Tom Lane
larger issue is that blind "mkdir -p" may not produce the ownerships and permissions you want for the parent directories. That's not a topic to get into in a one-line summary, though. regards, tom lane

Re: pg_dump shared locks documentation

2022-03-15 Thread Tom Lane
bout just inserting a parenthetical remark at the first usage? ... leader process requests shared locks (ACCESS SHARE) on the ... Possibly we could make the "ACCESS SHARE" be a without causing problems in man format. regards, tom lane

Re: Missing information about CREATE TRIGGER on temporary tables

2022-03-08 Thread Tom Lane
Schemas don't enter into it. regards, tom lane

Re: count() counts ROW values that are NULL

2022-03-18 Thread Tom Lane
here, because it's not the inverse of "whatever IS NULL".) regards, tom lane

Re: Does the POSITION() function takes into account the COLLATION... or not ?!?

2022-02-16 Thread Tom Lane
nly function that acts that way. regards, tom lane

Re: hot standby <-> Hot Standby

2022-02-26 Thread Tom Lane
"Daniel Westermann (DWE)" writes: > which rules do we follow for writing hot standby? The original author liked to capitalize it, but that's since been followed only intermittently. Personally I'd just as soon lose the caps. regards, tom lane

Re: Indexes documentation bug

2022-04-04 Thread Tom Lane
l_indexes.idx_scan instead the second > time. I.e. bitmap scans do not increment idx_scan. Um ... you did notice that the mentions of idx_tup_fetch apply to two different views, pg_stat_all_tables vs pg_stat_all_indexes? regards, tom lane

Re: systemd service start - disable timeout with "infinity"

2022-03-20 Thread Tom Lane
/systemd/man/systemd.service.html#TimeoutStartSec=, > this should be set to "infinity" to disable the timeout. Hmm ... maybe zero works too, or worked when this was written? But you're right that "infinity" is now the documented way to do it. Will fix, thanks for the report. regards, tom lane

Re: systemd service start - disable timeout with "infinity"

2022-03-20 Thread Tom Lane
Justin Pryzby writes: > On Sun, Mar 20, 2022 at 12:11:19PM -0400, Tom Lane wrote: >> Hmm ... maybe zero works too, or worked when this was written? >> But you're right that "infinity" is now the documented way >> to do it. Will fix, thanks for the report.

Re: maximum number of backtrace frames logged by backtrace_functions

2022-02-03 Thread Tom Lane
quot; useful enough to include in the report? regards, tom lane

Re: documentation typo

2022-01-30 Thread Tom Lane
from reading it, and that could > be made a lot more clear. I dunno, the section already makes it perfectly clear that there are two functions. I could get behind documenting the more modern one first, though. I wonder if it's time to remove the references to PG 8.1? regards, tom lane

Re: documentation typo

2022-01-31 Thread Tom Lane
Daniel Gustafsson writes: >> On 30 Jan 2022, at 16:52, Tom Lane wrote: >> I could get behind documenting the more modern >> one first, though. > +1 Proposed patch attached. >> I wonder if it's time to remove the references to PG 8.1? > I think it's time to re

Re: json_strip_nulls()

2022-01-22 Thread Tom Lane
" code that fails to conform to the JSON RFC, so I'm disinclined to work harder than that. regards, tom lane

Re: array_to_string and string_to_array

2022-01-22 Thread Tom Lane
d idea, done. regards, tom lane

Re: Conventions

2022-01-26 Thread Tom Lane
Bruce Momjian writes: > OK, updated patch attached. I don't think we even show TCL syntax > anywhere anymore, so I removed that text, rather than moving it. WFM. regards, tom lane

Re: Conventions

2022-01-26 Thread Tom Lane
ackets, to indicate an optional element in a syntax synopsis. regards, tom lane

Re: Why can NUMERIC columns not use deduplication?

2022-01-14 Thread Tom Lane
ations (not only output) that can distinguish them, so the index can't lump them together. There are similar issues in some other datatypes, for example zero and minus zero in the float types. regards, tom lane

Re: Conventions

2022-01-25 Thread Tom Lane
to zero, and they are likely to be familiar enough to not > need our preface to enlighten them. Maybe time to drop the Tcl reference altogether? I like that language, but I fear it's next door to dead, so it certainly doesn't need to be mentioned outside the pltcl docs. regards, tom lane

Re: Conventions

2022-01-25 Thread Tom Lane
Bruce Momjian writes: > How is this patch? I'd still drop the Tcl bit, or if you must have it, move it to pltcl.sgml. Otherwise OK by me. regards, tom lane

Re: "GIN and GiST Index Types" page is about usage in full text search, but looks general purpose

2022-04-12 Thread Tom Lane
continuing to find that 9.1 page when the search terms include GIN and GIST. I suspect it's keying off those terms appearing in the page title :-( After the recent changes discussed on the -www list, it's possible that Google will eventually stop indexing the 9.1 page altogether, but I'm not holding my breath. regards, tom lane

Re: "GIN and GiST Index Types" page is about usage in full text search, but looks general purpose

2022-04-12 Thread Tom Lane
Peter Geoghegan writes: > On Tue, Apr 12, 2022 at 12:49 PM Tom Lane wrote: >> I think we should take the index type names out of the section title >> entirely, and name it something generic like "Preferred Index Types for >> Full Text Search". > Agreed. Prop

Re: role attributes are missing from this page

2022-04-12 Thread Tom Lane
es.html role-attributes.html is not intended to be a substitute for that. regards, tom lane

Re: "GIN and GiST Index Types" page is about usage in full text search, but looks general purpose

2022-04-12 Thread Tom Lane
Peter Geoghegan writes: > On Tue, Apr 12, 2022 at 1:28 PM Tom Lane wrote: >> Proposed patch attached. The existing text already says "GIN indexes are >> the preferred text search index type", so I'm not sure we need to go >> further than that about

Re: group by can use alias from select list

2023-09-06 Thread Tom Lane
expressions, however." Not sure if we cover that explicitly anywhere else. regards, tom lane

Re: Incorrect/confusing information about timetz

2023-09-07 Thread Tom Lane
to document this? Section 8.5.1.2. Times already says "The appropriate time zone offset is recorded in the time with time zone value." Maybe that could be made a little more precise, say "The resolved numeric offset from UTC is recorded in the time with time zone value." regards, tom lane

Re: 31.7.1. Initial Snapshot

2023-10-11 Thread Tom Lane
t a good fix. regards, tom lane

Re: "20.16. Customized Options" – cannot be set by `ALTER SYSTEM`

2023-10-16 Thread Tom Lane
Laurenz Albe writes: > On Mon, 2023-10-16 at 12:29 -0400, Tom Lane wrote: >> So that feels like a bug: we should not allow ALTER SYSTEM to execute >> against a placeholder GUC definition, because the placeholder can't >> tell us whether the value is valid.  I wonder

Re: "20.16. Customized Options" – cannot be set by `ALTER SYSTEM`

2023-10-16 Thread Tom Lane
feels like a bug: we should not allow ALTER SYSTEM to execute against a placeholder GUC definition, because the placeholder can't tell us whether the value is valid. I wonder though if forbidding this would break any legitimate usage patterns. regards, tom lane

Re: Clarify: default precision on timestamps is 6

2023-10-13 Thread Tom Lane
e limitation to 1-microsecond precision is spelled out in the table just above the para you quote. regards, tom lane

Re: Discrepancy between the documentation and the implementation

2023-10-25 Thread Tom Lane
n to have some such feature but it never got done? Anyway, I don't see anything indicating that there's actually such a concept as "the default connection". I suggest we just remove those paragraphs. What *is* treated specially is CURRENT --- but EXEC SQL SET CONNECTION = CURRENT is effectively a no-op, so it's not very exciting. regards, tom lane

Re: Example 43.6. A PL/pgSQL Trigger Function for Maintaining a Summary Table

2023-10-27 Thread Tom Lane
tamptz value? regards, tom lane

Re: "22.3. Template Databases" documentation is incomplete

2023-10-28 Thread Tom Lane
DATABASE does not copy + database-level GRANT permissions attached to the + source database. The new database has default permissions. + + There is a second standard system database named regards, tom lane

Re: 'pg_global' cannot be used as default_tablespace.

2023-11-01 Thread Tom Lane
Bruce Momjian writes: > On Wed, Nov 1, 2023 at 06:32:37PM -0400, Tom Lane wrote: >> But it *is* permissible, unless we add code to reject it during >> SET as Bruce mentioned. Which seems fairly pointless to me. It's not >> like there is anything unclear about the CREAT

Re: 'pg_global' cannot be used as default_tablespace.

2023-11-01 Thread Tom Lane
there is anything unclear about the CREATE TABLE error message. regards, tom lane

Re: 'pg_global' cannot be used as default_tablespace.

2023-11-02 Thread Tom Lane
Bruce Momjian writes: > I found a cleaner improvement, attached. OK by me. Maybe that doesn't make the point strongly enough, but we can hope it's enough. regards, tom lane

Re: Incorrect mention of number of columns?

2023-11-03 Thread Tom Lane
"Daniel Westermann (DWE)" writes: > Creating a table with 1600 bigint columns does work with a 8k blocksize: Yeah, but populating it would not (unless many of the columns were NULL). regards, tom lane

Re: Incorrect mention of number of columns?

2023-11-03 Thread Tom Lane
mpact of NULLs, and the fact that usually tables have some variable-width columns, I doubt that a creation-time warning could be accurate enough to be useful. regards, tom lane

Re: Please make a note regarding the PL/pgSQL FOUND variable

2023-11-04 Thread Tom Lane
about PL/pgSQL features into command reference pages that have nothing to do with PL/pgSQL. regards, tom lane

Re: Example for Unique Partial Indexes

2023-11-07 Thread Tom Lane
ion that mentions partial indexes at all. Somebody reading the chapter in order would have no idea what we were talking about. regards, tom lane

Re: 'value' has special behaviour in alter system

2023-10-24 Thread Tom Lane
so, that para already mentions that the input can be a comma-separated list when appropriate, so your add-on para seems partially repetitive. I think you could just drop the first sentence of it. regards, tom lane

Re: Typo/wording on https://www.postgresql.org/docs/current/catalog-pg-class.html

2023-09-22 Thread Tom Lane
Daniel Gustafsson writes: >> On 22 Sep 2023, at 19:04, Tom Lane wrote: >> I propose the attached. (I also modified the para's last sentence to >> speak of "kind" not "type", for consistency with the relkind field name >> and the rest of the

Re: Typo/wording on https://www.postgresql.org/docs/current/catalog-pg-class.html

2023-09-22 Thread Tom Lane
"type", for consistency with the relkind field name and the rest of the para.) regards, tom lane diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index d17ff51e28..e09adb45e4 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -1893,8

Re: Typo/wording on https://www.postgresql.org/docs/current/catalog-pg-class.html

2023-09-20 Thread Tom Lane
relkind for that anymore. What probably does deserve to be called out in place of those is composite types, since their appearance in pg_class might be pretty surprising to newbies. regards, tom lane

Re: `pg_restore --if-exists` clarification

2023-09-28 Thread Tom Lane
unless --if-exists is also specified. --if-exists Use DROP ... IF EXISTS commands to drop objects in --clean mode. This suppresses "does not exist" errors that might otherwise be reported. This option is not valid unless --clean is also specified. regards, tom lane

Re: Is CREATE INDEX dependent on the session?

2023-09-28 Thread Tom Lane
ut that doesn't result in an automatic kill of the server process. > Do you want to propose a patch? There are enough environmental dependencies involved here that any simple description is likely to contain lies. So I'm hesitant to try to put anything about it into the docs. regards, tom lane

Re: `pg_restore --if-exists` clarification

2023-09-29 Thread Tom Lane
gitweb/?p=postgresql.git;a=commitdiff;h=75af0f401f905b947ea14401e8a51f1bae4ac265 regards, tom lane

Re: examples for windows functions

2023-10-02 Thread Tom Lane
OW-FUNCTIONS > but I think it would be helpful to put some examples in > https://www.postgresql.org/docs/16/functions-window.html That page starts out with a link to section 3.5 which is full of examples. Seems a bit repetitive to put more here. regards, tom lane

Re: INT4RANGE Upper bound always includes a higher number

2023-10-03 Thread Tom Lane
cs/current/rangetypes.html#RANGETYPES-DISCRETE regards, tom lane

Re: Corresponding documentation page does not mention about `spread` mode

2023-10-03 Thread Tom Lane
gt; complete. Perhaps a parenthetical remark like "(pg_basebackup refers to this as 'spread' mode)" would help? regards, tom lane

Re: Missing closing ]

2023-10-04 Thread Tom Lane
reservation VALUES > (1108, '[2010-01-01 14:30, 2010-01-01 15:30)'); > there should be ] after 15:30 No, it looks correct as given: that end of the range is open not closed. regards, tom lane

Re: JSON type unsupported

2023-09-26 Thread Tom Lane
for some other feature identifiers? regards, tom lane

Re: The documentation for storage type 'plain' actually allows single byte header

2023-09-29 Thread Tom Lane
der though if there's really just one place claiming that that's how it works. A trawl through the code comments might be advisable. regards, tom lane

Re: Typo in PL/pgSQL trigger Example 43.4?

2023-10-09 Thread Tom Lane
Daniel Gustafsson writes: >> On 7 Oct 2023, at 22:22, Tom Lane wrote: >> Yeah, either way has the same result. However, I wonder if we should >> change this example to use current_user for clarity. It does look >> more like it's intended to be a variable or column r

Re: Typo in PL/pgSQL trigger Example 43.4?

2023-10-07 Thread Tom Lane
, either way has the same result. However, I wonder if we should change this example to use current_user for clarity. It does look more like it's intended to be a variable or column reference than a built-in function. regards, tom lane

Re: User mapping security

2023-11-09 Thread Tom Lane
sers can't see umoptions. regards, tom lane

Re: Can we still dump version 7?

2022-05-31 Thread Tom Lane
potting it. I wonder whether we should update this or just remove it --- it's clearly something that's likely to get missed again. regards, tom lane

Re: CREATE EXTENSION not adding extension on second SCHEMA

2022-05-31 Thread Tom Lane
dered to be within any schema: extensions have unqualified names that must be unique database-wide. But objects belonging to the extension can be within schemas." I hardly see how we could make this any plainer. regards, tom lane

Re: Can we still dump version 7?

2022-05-31 Thread Tom Lane
"Jonathan S. Katz" writes: > On 5/31/22 10:55 AM, Tom Lane wrote: >> I wonder whether we should update this or just remove it --- it's >> clearly something that's likely to get missed again. > While burdensome, +1 for updating. We don't want users to get caught by &

Re: Reserved word: OWNER

2022-05-13 Thread Tom Lane
ls of keyword reserved-ness in Postgres, and a simple highlighted-or-not scheme is not going to capture any of that nuance. regards, tom lane

Re: Incorrect and missing docs for range_intersect_agg

2022-05-29 Thread Tom Lane
he same page. Hmm, this was fixed recently in HEAD, but it should have been back-patched to v14 and was not. Will fix, thanks for noticing! regards, tom lane

Re: No search results for "BETWEEN"

2022-06-24 Thread Tom Lane
rd. Use the index. regards, tom lane

Re: Docs for string_to_array missing for Postgres 14

2022-07-12 Thread Tom Lane
y belong there. The NOTE you mention is gone altogether as of v15. regards, tom lane

Re: Proposal to improve uniq function documentation in intarray extension

2022-06-03 Thread Tom Lane
'::integer[]) +{1,2,3,1} uniq(sort('{1,2,3,2,1}'::integer[])) regards, tom lane

Re: Proposal to improve uniq function documentation in intarray extension

2022-06-03 Thread Tom Lane
Daniel Gustafsson writes: >> On 3 Jun 2022, at 17:34, Tom Lane wrote: >> .. there's no longer any reason we have >> to limit ourselves to one example. I propose this: > +1 Done like that, then. regards, tom lane

Re: Mention RETURNING ... INTO target

2022-06-07 Thread Tom Lane
: https://www.postgresql.org/docs/current/plpgsql-statements.html#PLPGSQL-STATEMENTS-SQL-ONEROW regards, tom lane

Re: correction

2022-06-07 Thread Tom Lane
Bruce Momjian writes: > +not occur at certain isolation levels; higher The docs toolchain is not gonna like that. regards, tom lane

Re: Clarify the ordering guarantees in combining queries (or lack thereof)

2022-07-14 Thread Tom Lane
ime: 1830.390 ms (13 rows) The parentheses are actually optional here, if memory serves --- to get the ORDER BY to be applied inside the second sub-select, you'd have to use parens as Shay had it. regards, tom lane

Re: Correction

2022-07-24 Thread Tom Lane
s not correct. I tried creating a PK or unique > key index on a CITEXT column. It checks uniqueness in case-insensitivity. That paragraph is talking about what happens when you *don't* use citext. regards, tom lane

Re: Bug in code sample in "8.15.5. Searching in Arrays"

2022-07-24 Thread Tom Lane
omparisons yield > true (including the case where the array has zero elements)." I don't see any conflict there. regards, tom lane

Re: proposal: convert comments in documents to html comments

2022-06-26 Thread Tom Lane
em to recall some discussion of letting the commit info pop up as a tooltip. Not sure that that counts as "unobtrusive", though. regards, tom lane

Re: Documentation Suggestion

2022-04-29 Thread Tom Lane
imilar statement on every single one of our program man pages? >> The page could use a hyperlink/cross-reference to the pg_hba.conf >> documentation. > That's easily fixed. How about the attached patch? That part's OK, but personally I'd only have cited the link once. regards, tom lane

Re: Mixed field in table 70.3

2022-04-27 Thread Tom Lane
np[FLEXIBLE_ARRAY_MEMBER]; /* line pointer array */ ... regards, tom lane

Re: relpages in pg_class

2022-08-19 Thread Tom Lane
didn't realize that. This is a job for the glossary, perhaps? regards, tom lane

Re: Typo in description of PROGRAM parameter for the COPY command

2022-08-21 Thread Tom Lane
rusted source, you must ... Or maybe even better, just drop "shell command" from that phrase altogether. Probably also s/passing/including/ in the next sentence. regards, tom lane

Re: Typo in description of PROGRAM parameter for the COPY command

2022-08-21 Thread Tom Lane
opping "specifying" works fine with fewer words. > The attached includes all the above suggestions. LGTM. regards, tom lane

Re: Should 'sum(mvf)' read 'sum(mcv)'...?

2022-08-22 Thread Tom Lane
ost common Values' Frequencies". (Summing the MCVs themselves isn't sensible; they might not even be numeric.) I'd vote for replacing mvf in both places with something a bit more spelled-out, perhaps "mcv_freqs". regards, tom lane

Re: No discussion of custom variables; no "See also" for set_config, current_setting, pg_settings

2022-09-02 Thread Tom Lane
going effort to create a respectable substitute, but it still hasn't gotten across the finish line [1]. regards, tom lane [1] https://commitfest.postgresql.org/39/1608/

Re: Handling of quantity in recursive query example

2022-08-28 Thread Tom Lane
urn 20 bolts. > I agree, based on the attached test. > ... > Doc patch attached. Pushed, thanks. regards, tom lane

Re: DocBook 5.2

2022-09-26 Thread Tom Lane
palatable. If the conversion is sufficiently automated, that might not be a big lift. (If it's *not* automated, I think the change would never get off the ground even for HEAD, because the docs are too much of a moving target.) regards, tom lane

Re: suggest about bpchar data type in the document

2022-09-28 Thread Tom Lane
Laurenz Albe writes: >> I think that adding "bpchar(n)" in table 8.4 would be a good thing. > Here is a patch for that. There would need to be some mention of it in the paras below, too. regards, tom lane

Re: suggest about bpchar data type in the document

2022-09-28 Thread Tom Lane
Laurenz Albe writes: > On Wed, 2022-09-28 at 10:48 -0400, Tom Lane wrote: >> There would need to be some mention of it in the paras below, too. > True. I think the attached should be sufficient. Pushed. I failed to resist the temptation to do some further cleanup in t

Re: jsonlog cursor_position type is wrong.

2022-10-23 Thread Tom Lane
-CONFIG-LOGGING-JSONLOG-KEYS-VALUES > Yeah, that's a typo. Patch attached. Shouldn't it be "integer"? regards, tom lane

Re: Extension-specific version release notes?

2022-09-20 Thread Tom Lane
parately for each affected extension. regards, tom lane

Re: error on „ 38.5. Query Language (SQL) Functions“: a single row is returned

2022-09-18 Thread Tom Lane
so a single column, which is more relevant to the point being made. Compare this to the immediately preceding example. regards, tom lane

Re: Documentation on pgdump(1) uses "regular expression" instead of "psql pattern"

2022-09-22 Thread Tom Lane
orrect because they *are* standard regular expression notations. So I think being consistent with that is more useful than writing something else. Also, we have five cross-references to Patterns on that page already, so I don't think a sixth would add much. regards, tom lane

Re: Server start with systemd and configured with IP address

2022-10-12 Thread Tom Lane
ND on Linux, as suggested at [1] ... although that hobbles error detection, so I'm not really sold that it's such a great idea.) regards, tom lane [1] https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/

<    1   2   3   4   5   6   7   >