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 1lSTbu-0006Z9-FW for pgsql-committers@arkaria.postgresql.org; Fri, 02 Apr 2021 23:53:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lSTbt-0004fD-Bk for pgsql-committers@arkaria.postgresql.org; Fri, 02 Apr 2021 23:53:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSTbt-0004f6-2Y for pgsql-committers@lists.postgresql.org; Fri, 02 Apr 2021 23:53:53 +0000 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lSTbm-0001Tw-JT for pgsql-committers@lists.postgresql.org; Fri, 02 Apr 2021 23:53:51 +0000 Received: by mail-qk1-x72a.google.com with SMTP id c3so6585289qkc.5 for ; Fri, 02 Apr 2021 16:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=systemguards-com-ec.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UlCt+sTscUX3atfuGcLW3Z/+xbPWBW9zSkNKAYASYVY=; b=b5vyBlqbIHb2F9icy+IFAr80yTFg5e6JG7XTD386WUYjgHeGnBjLXLtTdkZH+xaYLl XPq90tiUgF3Cw2J99bDsDi/XTiLs0Kut8wkahHv5pRWqxx1lwXKrdCXW+Sm4E4osPmLv qbaSZL6MtDZJF0uQddi3N9RX+Xs4i8BwCKn8AtmQpSYDavjy+bgre/aSe+vyatf9SV93 2vCiTCbr6dDOqUso+SzkJhD6mTgbUvy7S6WBBbblnOu/PlLXSLRVcrpsKClJfOqYhUs+ v63V4pBs6dMSPLLvqjX6DehM04P1JcZJtdM6b0bJxCcxzrDQvjKNNbl10Lc6MbbrwK93 voRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UlCt+sTscUX3atfuGcLW3Z/+xbPWBW9zSkNKAYASYVY=; b=UNMzmq28QNF6gvlUVFpkCM+5wIf4mc35Toc3VR9hTs32/vsmwTC6gdEhUmHT541R+b tsQSbwXI/14sxiW6UhhfJmv9Vo2fOKXp0UhBcqFU8ZKOKsZfJYhlv8m/cS0e8jo1BwY7 JUE1Crn8a1Dz/cwVdV0HEMNh+yZ9woGUxWwzKclYMoBIzY3JzLsPGAK4uvMTw4xNgfD9 YGzackrfv80dTA+4Grzzzj9di7S+sJS+Awr2JXX9eBVjO7RbnSW41wphecQR83hr90/2 /Mpwy4TfcuulFoMRxOslr1autQ39LM4SlIeym1kZ1ZPG2yXo1rvKnoHRZF68ImUDFs5I yABg== X-Gm-Message-State: AOAM533GxHja+2nDq3SzQ3R10nWJ1bPitAa//HwDhAkLDAfQXv8TySQ9 SHU8y814WIEdoWR6Ky6POM/EKw== X-Google-Smtp-Source: ABdhPJzP8HJ9ThMimAtFWsY3X684Qma8tph9/LolGEw0fMRIsutKkC65C2zrWwoTGzUrzJOlVsXx6w== X-Received: by 2002:a37:e110:: with SMTP id c16mr15610283qkm.67.1617407624020; Fri, 02 Apr 2021 16:53:44 -0700 (PDT) Received: from ahch-to ([201.183.0.120]) by smtp.gmail.com with ESMTPSA id s19sm8188469qks.130.2021.04.02.16.53.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Apr 2021 16:53:43 -0700 (PDT) Date: Fri, 2 Apr 2021 18:53:37 -0500 From: Jaime Casanova To: Heikki Linnakangas Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add 'noError' argument to encoding conversion functions. Message-ID: <20210402235337.GA4082@ahch-to> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Apr 01, 2021 at 09:25:00AM +0000, Heikki Linnakangas wrote: > > Add regression tests for built-in encoding conversions. This doesn't cover > every conversion, but it covers all the internal functions in conv.c that > are used to implement the conversions. > sqlsmith thinks that test_enc_conversion() must be marked as STRICT. It crashes with something like this: ``` SELECT test_enc_conversion('\xe4dede'::bytea, null::name, pg_catalog.getdatabaseencoding(), false ); ``` -- Jaime Casanova Director de Servicios Profesionales SystemGuards - Consultores de PostgreSQL