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 1oUmCd-0000Jf-E6 for pgsql-docs@arkaria.postgresql.org; Sun, 04 Sep 2022 09:46:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oUmCc-00086z-25 for pgsql-docs@arkaria.postgresql.org; Sun, 04 Sep 2022 09:46:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oUmCb-00086p-Mu for pgsql-docs@lists.postgresql.org; Sun, 04 Sep 2022 09:46:05 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oUmCW-0007Df-VC for pgsql-docs@lists.postgresql.org; Sun, 04 Sep 2022 09:46:05 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-11e7e0a63e2so15462200fac.4 for ; Sun, 04 Sep 2022 02:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lelarge-info.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=DUIQi4ftjbPpMfbU8zamMbrU54XGiBmUQ1mP+LbBy5k=; b=VWsOYLsF9yxFqgl79D3l9oHWPiVzG4s3gxShWSnVAjz07bKsSkits9a9EbLcPa8ZP2 jTEZvEUGJpL6pwk9xY/+7JS93I3S9C048cft8hVZdHVk0JCnSyOUw70JbmpwIa8aqX/C Eooyir0aiMvMuasrt3WoH0FmJfI4BsO/Q8Ug8FUwcl4tbH5agE/KgPoc5lLaA/UQ6FCR r8CjIEDhPWDj2EnnLNMh1KGksgl03kNnAY3DUD6QB+raCkrPP4pl0uCSLvws5fpL83KF ZmDYCbtj8qhO2WSTJlFL0q0Oi2oGkjGhIm/8mk1yxmyoV3BNdsKkfZ7MnZUzRCxZ0GnA q/LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=DUIQi4ftjbPpMfbU8zamMbrU54XGiBmUQ1mP+LbBy5k=; b=d2Iu8UcGI3g2N6c06aEJVVzh77DwZMZU5wQdhV0Ybqp+u6UpZHxie10RBMdSYZTSRb P5TTTCY0mNN9qAwktAMwHIlp9JEYH7aQY1/YXvDWz7sWNAFYlkss78Xz+hyZ6AKa+Wuc YnLBHwwnyO1gtGSDzExxXiXWZHuuOV7l70K4dTG/EujHv1ChU++Cyq8yeKiT8f8oYDSJ SwEyMD6LOTyn4kSGC5FXswFOdOoC2KD/lMNHpjNilQBLDu7jPxuCEto82Zh4S+eskQR2 7dKxPl24sTenX6ygJibEiAhtyk4RmXqWTgimx3AmoV2i+kdJgHS6zmfpATViICAGSKMz s4UA== X-Gm-Message-State: ACgBeo0ojraY6Ia9TKp/CgoyL2ZTEcETxVhdY0L0SbacAx86YY/HWWSk kCinxR+JgIl4ZGKYAcM4p8pi+dgvyr8lyLW5KL7DnuoXsFQ= X-Google-Smtp-Source: AA6agR5q9vUtfQTrz1fq2/6dnC6pa7u1jb1FrB0MwWYRX+0KO6ARR5nh8wAPjohWzd4EwE8E8tHppgawKOmrO95xyR4= X-Received: by 2002:a05:6808:21a0:b0:345:b8ec:636e with SMTP id be32-20020a05680821a000b00345b8ec636emr5211749oib.38.1662284758453; Sun, 04 Sep 2022 02:45:58 -0700 (PDT) MIME-Version: 1.0 References: <166227844609.1235912.8608462614653193557@wrigleys.postgresql.org> In-Reply-To: <166227844609.1235912.8608462614653193557@wrigleys.postgresql.org> From: Guillaume Lelarge Date: Sun, 4 Sep 2022 11:45:45 +0200 Message-ID: Subject: Re: TABLESPACE To: nicolas@cns.com.cy, pgsql-docs@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000008b235c05e7d6d466" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008b235c05e7d6d466 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le dim. 4 sept. 2022, 10:19, PG Doc comments form a =C3=A9crit : > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/14/sql-createtablespace.html > Description: > > When exporting a table create script pgAdmin includes a command "TABLESPA= CE > pg_default;" such as below > > CREATE TABLE IF NOT EXISTS "DbTest"."Test" > ( > "TestID" integer NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 > START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ), > "TestName" character varying(80) COLLATE pg_catalog."default" NOT > NULL, > "CreateTimestamp" timestamp without time zone NOT NULL DEFAULT > LOCALTIMESTAMP, > "UpdateTimestamp" timestamp without time zone NOT NULL DEFAULT > LOCALTIMESTAMP, > CONSTRAINT "Test_pk" PRIMARY KEY ("TestID"), > ) > > TABLESPACE pg_default; > As you can see, there's no ";" between ")" and "TABLESPACE", so it's not a command on its own but another clause of the CREATE TABLE statement. It indicates the tablespace for the new table. --0000000000008b235c05e7d6d466 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



Le d= im. 4 sept. 2022, 10:19, PG Doc comments form <noreply@postgresql.org> a =C3=A9crit=C2=A0:
The following documentation comment has be= en logged on the website:

Page: https://www.postgresql.= org/docs/14/sql-createtablespace.html
Description:

When exporting a table create script pgAdmin includes a command "TABLE= SPACE
pg_default;" such as below

CREATE TABLE IF NOT EXISTS "DbTest"."Test"
(
=C2=A0 =C2=A0 "TestID" integer NOT NULL GENERATED ALWAYS AS IDENT= ITY ( INCREMENT 1
START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ),
=C2=A0 =C2=A0 "TestName" character varying(80) COLLATE pg_catalog= ."default" NOT
NULL,
=C2=A0 =C2=A0 "CreateTimestamp" timestamp without time zone NOT N= ULL DEFAULT
LOCALTIMESTAMP,
=C2=A0 =C2=A0 "UpdateTimestamp" timestamp without time zone NOT N= ULL DEFAULT
LOCALTIMESTAMP,
=C2=A0 =C2=A0 CONSTRAINT "Test_pk" PRIMARY KEY ("TestID"= ;),
)

TABLESPACE pg_default;

As you can see, there's no ";" between = ")" and "TABLESPACE", so it's not a command on its = own but another clause of the CREATE TABLE statement. It indicates the tabl= espace for the new table.
--0000000000008b235c05e7d6d466--