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 1gZQot-0007PK-1P for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Dec 2018 01:38:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gZQor-0000Yt-Ov for pgsql-bugs@arkaria.postgresql.org; Wed, 19 Dec 2018 01:38:41 +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 1gZQfC-0001BL-7D for pgsql-bugs@lists.postgresql.org; Wed, 19 Dec 2018 01:28:43 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gZQf4-0003zl-SY for pgsql-bugs@lists.postgresql.org; Wed, 19 Dec 2018 01:28:40 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 2AF3E1157; Tue, 18 Dec 2018 20:28:33 -0500 (EST) Received: from web1 ([10.202.2.211]) by compute3.internal (MEProxy); Tue, 18 Dec 2018 20:28:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:date:references:subject; s=fm1; bh=enC kGaqtBi7XQoBQZvCrZP6512Fmkrs5AVvJNrC46YY=; b=oTcbOujOqLrbd8P3pyb 7Eabf05HnTIw/q02EZiyXQCD+ckgoqO+w7k22zcteveVABZ+/P9kSWhw5Fl05ohB JCwueyzlK0ChkJJe/has4WrMyVGxQmHD7XdTHBhN6PpC2LpN/K2TUmOsNDw2DXYC utGJU5BEhq23MVgWB2ClFOSfBxrfDFlq3rd7T9cjmddJCZ5mgVPdQEPlxlT0PiNK nrFULnjwC1z3ah/gy8nMcSZP2AbVp1T5B3jOWQFKFe1P79tPpX3Y0/ITDmp0JtF3 y2DV/+BcQojH80fERPwlR5R1iAgZFMkQBtGJo5AqxU0VrVnzTOUMqxLvIm6WO1H8 Edw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=enCkGaqtBi7XQoBQZvCrZP6512Fmkrs5AVvJNrC46 YY=; b=vGRLYaxA6VbVe/P/Zct5YUh/TaNk0D75gJrJ9ExpBysCEz4YqGCvDkbyd jn4Mxeh9bFiRXdnlSl+QZJpbZyfrD7mD0WhYR7+mLcMaqLFXz6WBt+rTyzV0d1BK HZsQHxX+D2AVPRokkyIS+05ijKMa2xNxhoQzFbdnzRhPPe1laxYJMUGjM8RCSh4N 1D0PUxlJfM/EbjPtU7Jh5WgzRVZvS/BcJKru/p50cbiDUR722V2TVisAmK6SNRko aDnx3vKqqX5absEBWIGnooLk2Ti8yP9LE00HmIVtTMhU7u1Z26zMA0cjs+/nyL+H c/zd6+DKL+UJRrFeEJmAUs5rX/L/Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtkedrudeiledgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkhffvggfgtg fojgfffhfusehtjeertdertdejnecuhfhrohhmpeetnhguhicugfgufigrrhgushcuoehj vggufigrrhgushesfhgrshhtmhgrihhlrdgtohhmqeenucffohhmrghinhepphhoshhtgh hrvghsqhhlrdhorhhgnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjvggufigrrhgushes fhgrshhtmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 55F9B94113; Tue, 18 Dec 2018 20:28:32 -0500 (EST) Message-Id: <1545182912.1800865.1613067232.46581146@webmail.messagingengine.com> From: Andy Edwards To: "David G. Johnston" , pgsql-bugs@lists.postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-2f590f9a In-Reply-To: Date: Tue, 18 Dec 2018 19:28:32 -0600 References: <15558-996f38aafa654215@postgresql.org> Subject: Re: BUG #15558: NOTIFY max channel length is undocumented List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Oh, that's a good point. Do you think a hyperlink like the following might be an improvement? channel Name of the notification channel to be signaled (any identifier) If there had been a hyperlink I believe I might have clicked it and found this out sooner. On Tue, Dec 18, 2018, at 6:57 PM, David G. Johnston wrote: > On Tue, Dec 18, 2018 at 5:36 PM PG Bug reporting form > wrote: > > > > The following bug has been logged on the website: > > > > Bug reference: 15558 > > Logged by: Andy Edwards > > Email address: jedwards@fastmail.com > > PostgreSQL version: 11.1 > > Operating system: (irrelevant) > > Description: > > > > After debugging why notifications weren't getting delivered, I discovered > > the following: > > > > # LISTEN "pg/tables/TagNotificationTriggers/tag/_org/1/JSON > > Test/battery/1/lifetimeWh"; > > NOTICE: identifier "pg/tables/TagNotificationTriggers/tag/_org/1/JSON > > Test/battery/1/lifetimeWh" will be truncated to > > "pg/tables/TagNotificationTriggers/tag/_org/1/JSON Test/battery/" > > > > I haven't seen a mention of this channel length limit in any version of the > > documentation for NOTIFY. I wish it were in the documentation, because then > > I would have found out about this limit before deciding to use Postgres > > notifications, and chosen to use Redis notifications from the beginning. > > Since it is just another name/identifier it is the same limit and > behavior as is present for table names, column names, type names, > etc... > > The length of identifiers is covered in the general section covering syntax: > > https://www.postgresql.org/docs/11/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS > > Default length for identifiers is identified as being 63 bytes - > though technically (but not usefully) is system dependent at compile > time. > > It is intentional to not spam the documentation with such a > wide-ranging dynamic everywhere it might come into play...I'm > undecided whether NOTIFY is deserving of an exception... > > David J.