pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: nikhil raj <nikhilraj474@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Getting a error on creating a partition table index 12.2.
Date: Thu, 5 Mar 2020 10:34:02 -0800
Message-ID: <8d0faa8f-8daa-027f-1bca-b2e6b5705731@aklaver.com> (raw)
In-Reply-To: <CAG1ps1zLv1wozG2PacTDHSS1KuDuhXE2UiKX4Wec+OzoHr8iLg@mail.gmail.com>
References: <CAG1ps1zLv1wozG2PacTDHSS1KuDuhXE2UiKX4Wec+OzoHr8iLg@mail.gmail.com>

On 3/5/20 10:04 AM, nikhil raj wrote:
> HI ALL,
> 
> While creating the index on the partition table i am getting error on 
> it  saying
> 
> *ERROR: cannot specify default tablespace for partitioned relations SQL 
> state: 0A00.*
> 
> Query is
> 
> *CREATE INDEX t_e20so1_doi_c_doid_idx
>      ON public.t_e20so1_doi USING btree
>      (i_doid ASC NULLS LAST)
>      TABLESPACE pg_default;*
> *
> *
> *
> *
> Note:- but the same query is executed in the 12.1 version.its working fine.

Well this ERROR appeared here:

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;f=src/backend/commands/indexcmds.c;h=87...

Thu, 25 Apr 2019 06:20:23 -0800 (10:20 -0400)

That would encompass 12.1 also.

Are you doing anything else to public.t_e20so1_doi prior to the above?

-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (8+ messages)  latest in thread

Message-ID: <8d0faa8f-8daa-027f-1bca-b2e6b5705731@aklaver.com>
Permalink:  ../8d0faa8f-8daa-027f-1bca-b2e6b5705731@aklaver.com/
Also on:    postgresql.org/message-id/8d0faa8f-8daa-027f-1bca-b2e6b5705731@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, nikhilraj474@gmail.com
  Subject: Re: Getting a error on creating a partition table index 12.2.
  In-Reply-To: <8d0faa8f-8daa-027f-1bca-b2e6b5705731@aklaver.com>
  References: <CAG1ps1zLv1wozG2PacTDHSS1KuDuhXE2UiKX4Wec+OzoHr8iLg@mail.gmail.com> <8d0faa8f-8daa-027f-1bca-b2e6b5705731@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox