Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vzMnl-000w8Z-2K for pgsql-general@arkaria.postgresql.org; Sun, 08 Mar 2026 22:40:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzMnj-00BwSQ-1j for pgsql-general@arkaria.postgresql.org; Sun, 08 Mar 2026 22:40:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vzMnj-00BwSI-0h for pgsql-general@lists.postgresql.org; Sun, 08 Mar 2026 22:40:43 +0000 Received: from mail-yw1-x1133.google.com ([2607:f8b0:4864:20::1133]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vzMnh-00000001Bwg-2FUh for pgsql-general@lists.postgresql.org; Sun, 08 Mar 2026 22:40:42 +0000 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-79801df3e42so141049647b3.0 for ; Sun, 08 Mar 2026 15:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773009641; cv=none; d=google.com; s=arc-20240605; b=fd9s80qwqfAy0//1m7oGaerrYGpWdszRiJ5sarJSLrr4JkkB8gY4v/w0Ot0lArUmlQ 52kzSH/bD2/6EssBf8cY3XtuqPxmjamIAxKwY643IsnMvq88xjv9VhPpX1/k0dBRBMOL 8+qOjdodJnBhUn1EqWWtBYYBKnvUAl40xzfRXuTyQ79eAUz4/WgUF0Ni0SdqeUWHdaYu YnLr3B4CsrAosXQfyAC5G1e2JTY9W9e6k5IFRiWEeZab6cnVirgfq73m/+RIQ9fEOZ+V pJp7eHS5TUWJTKpAtYxt5pp14SoSe5veGYML3Ufmms3xOhuifQKBN94JRHhMcu3wB2H0 zgfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=VNkW3hk8Zioz091I/w0fixN+3gICUo5ISqyuRMTHOAE=; fh=MqX3/PjeIRWyveucHIwmT3MEzIvphFWgoM5FEnVDTkI=; b=LJio2G5G2qvhSIDnpxoYR2o5Z9tg86P/pdVS+pazSNIDx3cQHzRTmnzj6xDq8Dx4GW FLPuuGMnBwW9kEYs5QO/BNQVXLx0WgYik9Bbszjg7gGYM3gz8/JusNmEakmD7SuL7anZ +W5sEvKYXENqnGZWcMZCYt8Yk4ORLOdfP9o9Hy+l9RHbk2eEUhOE4naMHuTRFOIw3wO6 ViDwHYV43ZF9/dgorL1kn1NCRj6HeVKZxIbuOINH6Ys02ceSjuEbCqSCVzBLl5KqplJ4 RyBuuwSiEj6V2nDGsr4OTDUGmslGVAtO8Ew15frKaGENTUj1YtPRU8ewZgiTgWlKOntW fqgw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773009641; x=1773614441; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VNkW3hk8Zioz091I/w0fixN+3gICUo5ISqyuRMTHOAE=; b=WzgjkOzavjffFY6yyHhmBWWdVqf70wv6ICLefyfHT0resI6dd8SbvhgUOnzRgDbP/o /RAea7N+BrTDMTVW/oF3BT0bFH8Ix9+brncPtO3B0IbBER0bBrckNyjwCWcK+ylfY9SL Bnm+x+JtycWNYNzahJ8iVGATTZWAn1CFfH0oWqreuhXpXzdhSARdpjFiw2KBc1ZPPMG6 jnhUXVxJaPiAJCTOB7IzAV9ovTeBndEClvAjscw6ZDSXOQUMampzmDMrtc/GoOU3PGAg I1+5mC3IkD8uf8IIhflF4L8FAa4JCusVwN3MCVwgOir2+ORCXBldjGAKZZ5MAi4metNO ylQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773009641; x=1773614441; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VNkW3hk8Zioz091I/w0fixN+3gICUo5ISqyuRMTHOAE=; b=GuoLVDfHHhuYI0CTL4v32LI+V1s7IfycMPDfkFZrccNCz/8hupPmlCy5ITOKXriPjf XxbwwwxRy1jg8b6y7v2ej9smFDIVX5KsUJZj3/egEG25Bo2PpbbROuWKPbf6mexlLv5f 7WGe/oKtbM2KBXny5Z4SFa0pyRYl0qBFcA9m8wjJsKYC7n523GaaPNobpy9k4pqSQNxK aeyAM8ooX26NqkdPvBzuA57Q9Z62obvxoy1UyE6ptrYVBbUaTIZLfmRCH7L2CaaAzuEJ SzCY2K+jwNnBrCLnp1pEVQ5XlNEtOZXEBX3PGY34jH4HZfFv1ClHnZMZWyadvV40QBjb 2Y6g== X-Gm-Message-State: AOJu0YwSuZYX5nxpapJwlMi1NY5TBEJgVAzMpcIfyeDqGYYlPLDLWvMO suYh6fPS+5hZjwRAb6dHWU/KdR3a21BQ4BvkU8jKsjvh7Yah3LTmskR6a1OU3L87k1hD4JzQoj3 y1mwD0ZeYUo8oxkwgtRQueEg+tqxUuzSQBaEF X-Gm-Gg: ATEYQzx8+NAW11M8AKGu23GbURktMy6AIl4scbLVQqlzuQ4TW8nmHgaqEpDbZR6ZyEc gbww+gdPSlP1oHjiNJgX8PVztLBvygOh60sr194kRqEVP9lzkvhy6I2kmq8jY02Z3ikhULmPrEe vgWKSIIuocXpwFCSOsxKOVtiKaeq8+rwLFqpAhJ9pDKAQlEKNV5ypmCIPoLkfs0oHBGFnYM999w 5lor59xHPP/OJaVZn5aSrdAy3bD70r5eIoA5dC74JZCkqK9Hk1m+DsorhzPOCIBuN3m+KV3nD3I DOsPxL1cPnT+s+XKZjAaczVlUOzuVXu3w3KtWUmgi5X2aTycZg== X-Received: by 2002:a05:690c:ed3:b0:796:3f8a:9607 with SMTP id 00721157ae682-798d1f07dbfmr127014177b3.30.1773009640669; Sun, 08 Mar 2026 15:40:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sahul Hameed Date: Sun, 8 Mar 2026 22:40:29 +0000 X-Gm-Features: AaiRm53GJdtucp_f1xw2Td2Mbk9fNuzPgXcr5J6MrsuFVouNIq1wTOTNJK2J6CI Message-ID: Subject: Re: CREATE TABLE fails To: Igor Korot Cc: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000d0c657064c8af965" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d0c657064c8af965 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The problem is that you're putting the WITH clause on the PRIMARY KEY constraint, which applies to the index, not the table. CREATE TABLE leagues_new(id serial, name varchar(100), drafttype smallint,scoringtype smallint,roundvalues smallint, leaguetype char(5),salary integer,benchplayers smallint,primary key(id) INCLUDE (drafttype, scoringtype)) WITH( fillfactor =3D 50, autovacuum_enabled =3D true ); --Sahul On Sun, Mar 8, 2026 at 10:10=E2=80=AFPM Igor Korot wro= te: > Hi, ALL, > > [quote] > draft=3D# CREATE TABLE leagues_new(id serial, name varchar(100), > drafttype smallint, scoringtype smallint, roundvalues smallint, > leaguetype char(5), salary integer, benchplayers smallint, primary > key(id) INCLUDE (drafttype, scoringtype) WITH( fillfactor =3D 50, > autovacuum_enabled )); > ERROR: unrecognized parameter "autovacuum_enabled" > [/quote] > > But the page at > > https://www.postgresql.org/docs/16/sql-createtable.html#SQL-CREATETABLE-S= TORAGE-PARAMETERS > says it's available. > > What am I missing? > > Thank you. > > > --000000000000d0c657064c8af965 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The problem is that you're putting the WITH clause on = the PRIMARY KEY constraint, which applies to the index, not the table.=C2= =A0

CREATE TABLE leagues_new(id serial, name varchar= (100),
=C2=A0 =C2=A0 drafttype smallint,scoringtype smallint,roundvalues= smallint,
=C2=A0 =C2=A0 leaguetype char(5),salary integer,benchplayers = smallint,primary=C2=A0
key(id) INCLUDE (drafttype, scoringtype)) WITH( fillfactor =3D 5= 0, autovacuum_enabled =3D true );

--Sahul=C2= =A0

On Sun, Mar 8, 2026 at 10:10=E2=80=AFPM Igor= Korot <ikorot01@gmail.com>= wrote:
Hi, ALL,=

[quote]
draft=3D# CREATE TABLE leagues_new(id serial, name varchar(100),
drafttype smallint, scoringtype smallint, roundvalues smallint,
leaguetype char(5), salary integer, benchplayers smallint, primary
key(id) INCLUDE (drafttype, scoringtype) WITH( fillfactor =3D 50,
autovacuum_enabled ));
ERROR:=C2=A0 unrecognized parameter "autovacuum_enabled"
[/quote]

But the page at
https://ww= w.postgresql.org/docs/16/sql-createtable.html#SQL-CREATETABLE-STORAGE-PARAM= ETERS
says it's available.

What am I missing?

Thank you.


--000000000000d0c657064c8af965--