Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j51N0-0002rd-5e for pgsql-general@arkaria.postgresql.org; Fri, 21 Feb 2020 06:01:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j51My-00082B-SD for pgsql-general@arkaria.postgresql.org; Fri, 21 Feb 2020 06:01:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j51My-000824-C0 for pgsql-general@lists.postgresql.org; Fri, 21 Feb 2020 06:01:00 +0000 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j51Mv-0005SQ-KF for pgsql-general@lists.postgresql.org; Fri, 21 Feb 2020 06:00:59 +0000 Received: by mail-ot1-x344.google.com with SMTP id i6so1023506otr.7 for ; Thu, 20 Feb 2020 22:00:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=S/IvB9qpg9qCyQZ0jxdAEbbPJP+k8mgAryfuy6LIZyM=; b=BvT/3gangHURklNHgqVc3Utg1sFixYs5ehQGHkCCArjOfmSi1Z9Rci4/AEH4FH/P2Q XGioZ4ohTa0zxd2rudtplgAEq+GZLwBMCXbDcuIk3tgH2mczOJnnU85r3OhQ7EaDq+Be +mH5ZDJ2+wYo0uy0CMfjUO4L8YRR1dB9QtGhIRER1X96lcaPi6nZpyIVnhwsUIs5U/F1 lZrKyBgvb+SiAetpqoezx2ZwBg/LEChX25pQS919J7KBYTSyrIs1Y6L+HKZ4bm/ocUMu jCODOnlsX8w9OH6cqr3GyMWdrcnafiCX+1Mnyi/28Cqgse4Halj3TCn+BmKkh1FKr4Oe IkUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=S/IvB9qpg9qCyQZ0jxdAEbbPJP+k8mgAryfuy6LIZyM=; b=MsE0Ee/nlFO6Eb5lSL6p6Q7vhGu3X33wzYMevrVXVZX6XOMTWDKuCisTRHjAA6iAAU Yp5Ab7Ek0HpwbwARgsxWWDSN3CXn1WJEXXo15MjxO22rHiRFGts6aPZ9wlPgmxA6S2cV v68xLHu3M0WxbFPed7LBrqiNOQrXpbVB6MBBTvrNE01AiSUJwxWiL5wjGDbHftYP+udS ay8C7o6b27EW87v+7v6K5slD7IJhnrlthMxglqK5+LzLacEx9FKq4P8VKQZWqTWzPKxB RyzPCwau7dcaQuNEs8TZr3sZ3h85qpit65a5e7sv4EfPfj8B3dYC12NswUewd54A08Kp Jzbw== X-Gm-Message-State: APjAAAUauiGNsgYQ9+Zn4Bl9pUxQtBPxwe0QvJ5o/EJJpH3kuTYiRuOi 8CLndwOwD4L6kIEYFkyzKhqsh4Kfqg0= X-Google-Smtp-Source: APXvYqx+Sj8Jx26YoirPvtblQhNKg78KVlV2MrSnXbuHGNHjnPs6Lidk+qMgLEl2J5g/3PRL+t9fpg== X-Received: by 2002:a05:6830:1e2d:: with SMTP id t13mr27624673otr.128.1582264856881; Thu, 20 Feb 2020 22:00:56 -0800 (PST) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id t22sm703388otq.18.2020.02.20.22.00.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Feb 2020 22:00:56 -0800 (PST) Subject: Re: Can we have multiple tablespaces with in a database. To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: Date: Fri, 21 Feb 2020 00:00:55 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------1261A8249FBDAB868B0F319C" 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. --------------1261A8249FBDAB868B0F319C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 2/20/20 11:46 PM, David G. Johnston wrote: > Please pick a single list to post to.  Performance seems like the > unnecessary one here. > > On Thu, Feb 20, 2020 at 10:34 PM Daulat Ram > wrote: > > Can we have multiple tablespaces with in a database in postgres? > > > I fell as if I'm missing something in your question given the presence of > the "CREATE TABLESPACE" SQL command and the related non-command > documentation covered here: > > https://www.postgresql.org/docs/12/manage-ag-tablespaces.html > > Can we have a table on different tablespace same as Oracle? > > > There is no provision to assign two tablespaces to a single physical > table.  To the benefit of those who don't use the other product you may > wish to say exactly what you want to do instead of comparing it to > something that many people likely have never used. In some RDBMSs, you can partition tables across multiple tablespaces, but they don't partition tables in anything close to the trigger-based method that Postgres does (at least in 9.6). -- Angular momentum makes the world go 'round. --------------1261A8249FBDAB868B0F319C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 2/20/20 11:46 PM, David G. Johnston wrote:
Please pick a single list to post to.  Performance seems like the unnecessary one here.

On Thu, Feb 20, 2020 at 10:34 PM Daulat Ram <Daulat.Ram@exponential.com> wrote:

Can we have multiple tablespaces with in a database in postgres?


I fell as if I'm missing something in your question given the presence of the "CREATE TABLESPACE" SQL command and the related non-command documentation covered here:

 

Can we have a table on different tablespace same as Oracle?


There is no provision to assign two tablespaces to a single physical table.  To the benefit of those who don't use the other product you may wish to say exactly what you want to do instead of comparing it to something that many people likely have never used.

In some RDBMSs, you can partition tables across multiple tablespaces, but they don't partition tables in anything close to the trigger-based method that Postgres does (at least in 9.6).

--
Angular momentum makes the world go 'round.
--------------1261A8249FBDAB868B0F319C--