Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msRJq-0000lx-LC for pgsql-admin@arkaria.postgresql.org; Wed, 01 Dec 2021 15:14:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1msRJp-0005wX-A4 for pgsql-admin@arkaria.postgresql.org; Wed, 01 Dec 2021 15:14:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msRJo-0005wO-RR for pgsql-admin@lists.postgresql.org; Wed, 01 Dec 2021 15:14:48 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1msRJl-0002Qb-Ha for pgsql-admin@lists.postgresql.org; Wed, 01 Dec 2021 15:14:47 +0000 Received: by mail-wr1-x42e.google.com with SMTP id a18so53110450wrn.6 for ; Wed, 01 Dec 2021 07:14:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=atsXYm+IQX/plUx+/K0fdSbvqhxrsp4H3bsq0c2PNeg=; b=30jKDad4gNSH/EAlrAmdmU/5SLB4KT3FOitJnoQ/LscN+Sz2xIq9qMNUvpPXXmlGrE QSgHfYr/T5RdhZEJVGdoymy6871PCuKp0GW/MAanIuxZdOdDrZdtLMhq8CgLkgSS1XCi cvChUap0gUZuk0xVyhn07VNxPeG9Hys6CWo/FKU0yWkqSP7DquTJtpl1VwFIQpRropQx VuqgqaZ83M2yTjcrN9zLB9RvnHl/iU9QRbhHU+QFS4qtnsEUxaHAe3uHaFp9Qbl5TOU8 c7CUdpua8vjVRR8z28GAgxEw9DMdnsACXFhtERCB7CMgtsIG3wSkOsV0/8Edfu3RWMlE wS/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=atsXYm+IQX/plUx+/K0fdSbvqhxrsp4H3bsq0c2PNeg=; b=VWDqsg+c39J52/ThWbbxNi1H+7tGX7vR9pDSoY1IRRrNgscNPnKpx2cU0GZ6JeuAPQ wHEFa8rJpUSwj3Isdtt79GEkSom1yjIkPV3GFFOt3H0pA6l9ZrzyIkKHqpjRaB+wMVDJ yxKy5KR50xTPqKVx1GLrvHsvvEQ8ozDYbojzIwM6QjhnNrPUdZlBoOGNPu/UNoC+UkA0 iU+CseWha8WW/mbKSmDkhQy/dhJrGPjxSBi+oI9FIEV5pJNFxzdT6OqvlmMdswLjN98W Q8VD3tUdPhakV0JMzE8oDci54agN/gkIWH+FbUkFR8bJV8U0fQnDRvrhezWWX2PNq18q AhDQ== X-Gm-Message-State: AOAM530db4N78w0mfYzkeuFziRqHMwiVcvTCXT+BzrOpm3MSefmA81/W 2AjjzTuzGIVDsM30PUuADJ5Yqw== X-Google-Smtp-Source: ABdhPJyvgLu4mNMTocnZBH/TITG06J9N2uu7+EdAdO/svxzmac4XbaDNayDTlaouUqqmlazDqPtJBg== X-Received: by 2002:a5d:6d0c:: with SMTP id e12mr7240358wrq.94.1638371683536; Wed, 01 Dec 2021 07:14:43 -0800 (PST) Received: from localhost.localdomain (178-190-179-120.adsl.highway.telekom.at. [178.190.179.120]) by smtp.gmail.com with ESMTPSA id l5sm104735wrs.59.2021.12.01.07.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 07:14:43 -0800 (PST) Message-ID: <0bd53117207a26a5b8dbe03545448e72397c219f.camel@cybertec.at> Subject: Re: Suggestion: Explain how to move objects to the default tablespace in sql-altertable.html From: Laurenz Albe To: Holger Jakobs , "pgsql-admin@lists.postgresql.org" Date: Wed, 01 Dec 2021 16:14:42 +0100 In-Reply-To: <4011114d-e297-bb2e-ab37-9d1b3880b739@jakobs.com> References: <4011114d-e297-bb2e-ab37-9d1b3880b739@jakobs.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-2.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2021-12-01 at 15:37 +0100, Holger Jakobs wrote: > Today I wanted to move an object to the unnamed defaul tablespace. It > took me a while to find out that neither the empty string '' nor the > word default works, but that you have to use pg_default. > > This should be mentioned in the documentation of the ALTER TABLE command > (and maybe others). Not sure if that is necessary. You have to use the name of the tablespace. You can see that with "\db" in psql or query "pg_tablespace". That's no different from other tablespaces... Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com