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 1vNwI4-002LC6-2u for pgsql-general@arkaria.postgresql.org; Tue, 25 Nov 2025 16:53:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vNwI3-00A6X7-1b for pgsql-general@arkaria.postgresql.org; Tue, 25 Nov 2025 16:53:19 +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 1vNwI3-00A6Wy-0Z for pgsql-general@lists.postgresql.org; Tue, 25 Nov 2025 16:53:19 +0000 Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vNwI0-001Pvq-1s for pgsql-general@lists.postgresql.org; Tue, 25 Nov 2025 16:53:18 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id 3BB18EC0388; Tue, 25 Nov 2025 11:53:16 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 25 Nov 2025 11:53:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1764089596; x=1764175996; bh=HwUW+C77Fz3qA6uJxKoY3zDHQ3lnkp8q3AVfBjSqPxw=; b= S9oF8bHvjtuaWEoeqyxoh6yi4QGgUaPz77cSGE2dgvC6GU42HtqYogY7hwihD2YC rYcO/0ZOV72qmX9dUgZklZ4jJ8O34ATaJijfGfoRZQgHKHBx46pEAkoYgfBPYX+w j/+oE5KdejjV03HhC7MFo9ziPD+f0JUQyYbkbgPxpV5HPudp70WrA1XiM9JG7KCz 0c18TKhH9TjFrQrhsbnJk5ViFh1aY2kZPijc8kq8D+pVEBy7Djqq9pn+YGRp4KO+ yH7H7dTVCDMgPfYRXhyokpBnYLT3kByvqnMW3b152iJEhkgWHoGvSrfiOcBl1ljK 3g5dfTs99zA3VDZltNB5BA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1764089596; x=1764175996; bh=H wUW+C77Fz3qA6uJxKoY3zDHQ3lnkp8q3AVfBjSqPxw=; b=GkPeLn5DIWTPgj/cx mU3jtShT2Uo5hstb/qCgPwjFCa59/U+LvsOtdHuw+I3bvQfgmU6bVxI1pGMyHoZw 5B5Xz8qbamdJRCB+bH6zMtIey6QV8ophjq+y+NjhfXpPKpASKRhiPjx6GLJYpflf iUSS6nWLDEtPY08Vjnvzio634xpJ+v76rdAm/SYM4NC90B0YafCaZdtupZYCwMED cVstj1HDv+Q3lRrWQ7TKtUj3SFCflE9HWlC5VDtsxSRWPWzeTfoP5e9CCq0vDwSI L7J7v1wlhQ4IfCFC81rGHIRynF/ydjZ+xi1s4a/zgeZhlK2DIg7yTuk+rVujqcjs f2Ofg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvgedvtddtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeeivdfhieehheegueeileejieettdejhedugeefleekvdel keehtdfgiefffeekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggp rhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehrshhhvghprg hrugesrghpphhlqdgvtghoshihshdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghn vghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Nov 2025 11:53:15 -0500 (EST) Message-ID: <0b511e5a-aadb-4168-9ba4-0b4ae213f920@aklaver.com> Date: Tue, 25 Nov 2025 08:53:15 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Selecting all variations of job title in a list To: Rich Shepard , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/25/25 08:33, Rich Shepard wrote: > Companies can have slightly different titles for the same job; for example > (using abbreviations). 'Asst Gen Mgr.', 'Env Mgr,', 'Gen Mgr,'. 'Mgr,', > 'Plant Mgr.' > > I want to select all people table rows that contain these varieties. I know > the 'like' operator uses '%' as a wildcard, but is not accepted in an 'in' > list. Something like?: select 'Env mgr.' ilike ANY(ARRAY['Asst Gen Mgr.', 'Env Mgr.', 'Gen Mgr.', 'Mgr.','Plant Mgr.']); t > > Is there a way to use a multicharacter wildcard in an 'in' list? > > TIA, > > Rich > > > -- Adrian Klaver adrian.klaver@aklaver.com