Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aO7Mw-0005UP-Rc for pgsql-general@arkaria.postgresql.org; Tue, 26 Jan 2016 17:25:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aO7Mw-0001Hk-3M for pgsql-general@arkaria.postgresql.org; Tue, 26 Jan 2016 17:25:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aO7Kd-00079O-Vf for pgsql-general@postgresql.org; Tue, 26 Jan 2016 17:23:08 +0000 Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aO7Kb-00024b-9w for pgsql-general@postgresql.org; Tue, 26 Jan 2016 17:23:06 +0000 Received: by mail-qk0-x230.google.com with SMTP id x1so65580020qkc.1 for ; Tue, 26 Jan 2016 09:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:content-type :mime-version:content-transfer-encoding; bh=nGWnSr2sltHZEfcrtLaQZ+0oJHz58YD6sDnJAz5gH+w=; b=jlxy7GuADVDe+9sGYt8uXAB6UP8Le9UCSmwaw76Ia15+6KWCkS4Yjf5Iqz6n/LS6Jm jexG8SBqUsYgYKNYADy3vwLW7jWdA9eYincRdhzk0RDCA4omv6S1wn9zr1m7BjyrXTY5 8PCZlvtIxxNcJygwUdsxViWMlWG0b13e6XqvAzf9Lo4V+97mjQqHA8ESi3ddjuoWvcFU KFKICUSGTms3QYiwbTTTKRy2aULH0a/tS2VNK0P4hMJ+YLw4fHlMdUsa37sAUX6m5jKl 8axzaPh3wBh3wk83PtauLQgCITX2NrEj8YEYwaOvH92f8fYqg9z9NTokGyOxH7geeC6/ ExEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=nGWnSr2sltHZEfcrtLaQZ+0oJHz58YD6sDnJAz5gH+w=; b=ckvMJtY1D0QD0p0kA/YgNbNmSWAE/eApxEzDtMJsIEeJCBVAXm9inghrnQ5bW8V+3U +hUHBhsPmeDN4y4+oIZu7UJIQi7uItWXxbSrWjiTe+U5rGvyvhRhtaNErvMccAwxsQeP rY+7v9gPsgwzHEJxNT2NWN+5v5S5do9zESugOKjVtPpeYngljX00KW6bNVspFMXoAs0t JvQfFcdtXZfxfW/yPcVoI9zrA9Is5Aw9xvMewDGK6JutSrX07kNUS8Z6WCp1KPRc3Rta aC2f5schMoJU7GqJwLQsiPaC5K1hVxr8T2X7SvV1CoKQQtfTK/EspEx0jk9XBe7keB6d NDQg== X-Gm-Message-State: AG10YOS2QJLohPmblluzduvLuySVWJ6QT8+lyK1oIp5EngJk89Vnby0jSmh588GjwSaweQ== X-Received: by 10.55.33.229 with SMTP id f98mr5493441qki.18.1453828980253; Tue, 26 Jan 2016 09:23:00 -0800 (PST) Received: from roblaptop ([187.65.206.117]) by smtp.gmail.com with ESMTPSA id j7sm899190qgd.2.2016.01.26.09.22.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2016 09:22:59 -0800 (PST) Message-ID: <1453828964.5658.3.camel@gmail.com> Subject: Re: Case and accent insensitive From: rob stone To: Max , "pgsql-general@postgresql.org" Date: Wed, 27 Jan 2016 04:22:44 +1100 In-Reply-To: <1461523717.1243810.1453806372489.JavaMail.yahoo@mail.yahoo.com> References: <1461523717.1243810.1453806372489.JavaMail.yahoo.ref@mail.yahoo.com> <1461523717.1243810.1453806372489.JavaMail.yahoo@mail.yahoo.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.3-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On Tue, 2016-01-26 at 11:06 +0000, Max wrote: > Is there a collation for case and accent insensitive filter? I just > found the use of operators like ILIKE ou CITEXT module but I can't > use ILIKE in the queries and the CITEXT is a field-by-field solution > for the case insensitive part of the problem. I also found > the unaccent text search dictionary that could help with the accent > part. > > In the MySQL world we have the database level > collation latin1_swedish_ci where 'maca' = 'Maçã' is true and no > field level configuration is required. > > This database is hosted in Amazon Cloud so I'm also limited by what I > can do in this environment. Have you considered storing the text in its HTML equivalent? So "maçã" becomes "apple" in Portuguese. You'd have to convert your query parameters before running the select. My tuppence worth. HTH Robert -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general