Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWOjr-00015B-Sy for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jan 2018 15:44:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWOjr-000858-Aw for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jan 2018 15:44:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eWOjr-00084u-1H for pgsql-hackers@lists.postgresql.org; Tue, 02 Jan 2018 15:44:27 +0000 Received: from mail-qt0-f193.google.com ([209.85.216.193]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eWOjo-0000QC-0O for pgsql-hackers@postgresql.org; Tue, 02 Jan 2018 15:44:25 +0000 Received: by mail-qt0-f193.google.com with SMTP id k19so63035070qtj.6 for ; Tue, 02 Jan 2018 07:44:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=tx++I+7kCkR8qRvB4XblSl2N8E51AowIBjEOia8v3lQ=; b=RSrgAnSufb8EiMsMT+lgPJymT9fZq59IIymBWALALpU/DJi+pjlPfuPx0ZNoh8ldBo TFqmYnf4G32FqRGq/uej6YA5ymcqniuykbc4LAuudy0AMVYlrHKyEU7j+Z0/SRwzGlGS 6HT0VMcnt9p2tKs/evmkOdbRPdWKWypE9wy0vTyRvZngmAjKuZKwTNbheX4PCh3OWVl4 HEZmGs0kcgUcBaK3UbJvMRRC66ubwMze8M76bnELLHdQ1G5ODeDdKtolOTnvLLL1QikN DnoFdeDHrlPmn9Zvt2op3gS/b9LjAcqThZTLN5GwNN1oONuBwEZkSZ6jk0uuoXlti0p6 mdLg== X-Gm-Message-State: AKGB3mI5gdv7cOYktHRBa9eiStJjkrkd1PKkBklzoJfQfCSRdCtabqM2 0KI5w80AS+w840F8qP4GxEspaw== X-Google-Smtp-Source: ACJfBovdaFG0pZZS5VmkHH8PRKTejSN0DXn0SMMHNALwebEp3HIlPBNWiHo4QhuxM4850/fyC+yP9g== X-Received: by 10.200.33.143 with SMTP id 15mr60195340qty.165.1514907862607; Tue, 02 Jan 2018 07:44:22 -0800 (PST) Received: from localhost.localdomain (c-24-61-8-151.hsd1.ma.comcast.net. [24.61.8.151]) by smtp.gmail.com with ESMTPSA id g199sm6247479qke.73.2018.01.02.07.44.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jan 2018 07:44:21 -0800 (PST) Reply-To: jesper.pedersen@redhat.com Subject: Re: [HACKERS] Proposal: Local indexes for partitioned table To: Alvaro Herrera Cc: Robert Haas , David Rowley , Simon Riggs , Pg Hackers , Maksim Milyutin References: <20171222151023.ie4zrbgwtva7flij@alvherre.pgsql> From: Jesper Pedersen Organization: Red Hat Message-ID: <6d0e39e9-58c8-3333-5ed5-7b0b45405e71@redhat.com> Date: Tue, 2 Jan 2018 10:44:20 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171222151023.ie4zrbgwtva7flij@alvherre.pgsql> Content-Type: multipart/mixed; boundary="------------66D6CB918D861C9B11929B09" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------66D6CB918D861C9B11929B09 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi Alvaro, On 12/22/2017 10:10 AM, Alvaro Herrera wrote: > I believe these are all fixed by the attached delta patch. > Thanks. > If you have wording suggestions for the doc changes, please send them > along. > Maybe we should make the default index name more explicit under the 'name' parameter as attached. Best regards, Jesper --------------66D6CB918D861C9B11929B09 Content-Type: text/x-patch; name="doc-changes.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="doc-changes.patch" diff --git a/doc/src/sgml/ref/create_index.sgml b/doc/src/sgml/ref/create_index.sgml index 5137fe6383..7d32c5556d 100644 --- a/doc/src/sgml/ref/create_index.sgml +++ b/doc/src/sgml/ref/create_index.sgml @@ -146,7 +146,11 @@ CREATE [ UNIQUE ] INDEX [ CONCURRENTLY ] [ [ IF NOT EXISTS ] PostgreSQL chooses a suitable name based on the parent table's name and the indexed column - name(s). + name(s) using the following formular {tablename}_{columnname(s)}_{suffix} + where {suffix} is pkey for a primary key constraint, + key for a unique constraint, excl for an exclusion constraint, + idx or any other kind of index, fkey for a foreign key and + check for a check constraint. --------------66D6CB918D861C9B11929B09--