Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u1mL1-007vEg-Aa for pgsql-docs@arkaria.postgresql.org; Mon, 07 Apr 2025 13:16:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1u1mKz-00GIyt-6t for pgsql-docs@arkaria.postgresql.org; Mon, 07 Apr 2025 13:16:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u1mKy-00GIyk-Ub for pgsql-docs@lists.postgresql.org; Mon, 07 Apr 2025 13:16:29 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u1mKw-003vKZ-2c for pgsql-docs@lists.postgresql.org; Mon, 07 Apr 2025 13:16:28 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5e5e63162a0so7081153a12.3 for ; Mon, 07 Apr 2025 06:16:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1744031786; x=1744636586; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=JmNI5Nv3wZQZsJxtItLimHMnJbVj+Y3KX8Qio23VE3U=; b=QFNjnlNVnacyBy264xv8o1IlkcDEjPx7so8/vgQKsxJ0uVylkJq/enrsxk6ZF9lxTJ waI84wQTd08LizeI+rUH3wrR83NKmEKZ63F4hQ9fL9C0m3sqe3C4Qsc3zoBcQVLZ9Ml+ W5b1dID89PVZRTdsuxzRZFOEhrTEoP1VJDiPj2ItwhW9LLtEXvhhtkXjirJQkPoas/LH ZOzJh15cdzl7HANBIvXQLk+jk57GoDkVFRiWvQbu1ULmmXWzZRtzWC1KQPhAN0J7iYqw WZUa2nCfZGPBZscXR0+TZOe+S6i0gNw30PDXaiAUEcylfSYEw6+hHL1zWXLpaKs/V7UY we5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744031786; x=1744636586; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=JmNI5Nv3wZQZsJxtItLimHMnJbVj+Y3KX8Qio23VE3U=; b=wvFjdrGefr2BjbxrHZ0Szc6ftEBbeCW2YcUeySRYSZeO5Yd6pLWovLBfdxgIcLkypr ff+MkG3+WpREFx8TvXbT6E0TefMhdJPazGP1eiFN1/km9Id3x09ON3qBIAm6y40MO/0Q FPPoYY0CN3mupLq9c37Cgwf8PyhHo6RMTBVwuSfjlmY7Y3EbPoTT4bi4XmomQhPUVfDy 2JISFxzg96s0Fi36I3NfwgKOxTa9S1JX8ged4QzFR0EWot5u32cRHGysQpW9Q/OreMQU LMmZ4F8YRB7XK9rou/LGQlde2U/65IRk2fwcdzAIXj4S74/s7yY1cRhSWVRcgPXzjPND nhhg== X-Forwarded-Encrypted: i=1; AJvYcCWvk2eV0UtPRJeb2SxepjuJUSgLmexeGVENFMDbYhFj/gYecwdYaBNvmyQzcS/2ufUKPQdRL8SGXPgB@lists.postgresql.org X-Gm-Message-State: AOJu0YwXn151SnDj8M9FdJF6uwmFdSKy8uKzKYsYtYgKIZHmqXcma30A Q7hbkDWnLbOH0xgAgzOBT8ubyyFr1s2aVGBMLkTwvnuA/T35kvRw6nJyLxLvldWacZM6hurhw2z 6giI= X-Gm-Gg: ASbGnctC4xqaBALNvESG2PAfFg9n1kHFcTukOxpz+9+SslF8FINhz9nvj7I8KteRqKy R2lEmYpJROX26zfow1R9eIbRZtSAmVevluPaTsdgXHtz3NhSWGbEUOmqUZkxFO2Mdth3tMzd5Co 5gd7WTueArAIEIo1IZfCmRatmW+FVy4cW9q1qWbaHr+vhE65lM7vQ2/IjZUviqYpxaC013Vf8dx MF9z2kZNvbyY7xwaLuc4q7KjjwPyo2euogIwT4QpEQ/kgrVSvyUjLuOezaBYptGQigB76tDXHWR yq7ckcZPZbWYdKauT4tJYPlbGDKWq3w3vFtUE0x35kfl0MbGUl5bzQ9WauXC0aHeeA== X-Google-Smtp-Source: AGHT+IHSb4dw6SVwSxsJjWgyi3yCznF/IBy13VLoUPA5UNC6oYx6lWLUUyEnr3wT1kIE22xvr8Ae8g== X-Received: by 2002:a05:6402:3593:b0:5e6:13bf:2c7c with SMTP id 4fb4d7f45d1cf-5f0b3b8d9a7mr9935012a12.9.1744031785721; Mon, 07 Apr 2025 06:16:25 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:9a63:6e75:d921:166e:9c61]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5f087f07baasm6735269a12.37.2025.04.07.06.16.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Apr 2025 06:16:25 -0700 (PDT) Message-ID: Subject: Re: Re[2]: Suggestion for docs, section "4.2.3 Subscripts": bounds and base From: Laurenz Albe To: Stefan Schmiedl , pgsql-docs@lists.postgresql.org Date: Mon, 07 Apr 2025 15:16:24 +0200 In-Reply-To: References: <174370454407.3115968.6902015899222362259@wrigleys.postgresql.org> <488788bd2526cec7eb175741c010cab2fa24fed4.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2025-04-07 at 09:07 +0000, Stefan Schmiedl wrote: > Wearing my documentation writer's hat, I agree that the information given= on > one page need not be repeated on another one, especially if it's already > cross-referenced. >=20 > However, with my documentation reader's glasses on, I would have liked to= see > that data there, as it would have allowed me to file subscripts under=C2= =A0 > "brackets, mostly 1-based,=C2=A0slices [a:b]=C2=A0are closed intervals" a= nd move on. >=20 > As it is, I needed to follow the link=C2=A0to the array page, then to the= section=C2=A0 > "Accessing", where I encounter=C2=A0"Now, we can run some queries on the = table",=C2=A0 > which implies that I need to at=C2=A0least scan content somewhere above t= he current=C2=A0 > point to learn about the=C2=A0table structure. Only then I reach the bit = about the > first index. >=20 > Pages in part I and II (at least, I have not really gone into III and IV)= feel like > they're meant to be read completely from top to bottom, not topical like = a lookup > in the excellent Reference where I usually can find answers to my questio= ns by > reading a few lines in the description of the option I'm unsure about. >=20 > As such, I'd have appreciated the additional information as it would have= kept > me in the flow of the page, a flow that its author has worked hard to set= up for me. There is always room for improvement. It would be great if you could put on both of your hats and come up with a patch that implements the rather invasive change you are envisioning. Then we can see if it feels better overall, and we have a concrete basis for a discussion. Yours, Laurenz Albe