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 1hYHwj-0002KR-Uf for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 22:30:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hYHwh-0001hz-FB for pgsql-general@arkaria.postgresql.org; Tue, 04 Jun 2019 22:30:19 +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 1hYHwg-0001hs-JX for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 22:30:19 +0000 Received: from server.dayspringpublisher.com ([108.179.223.62]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYHwd-0003nh-T1 for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 22:30:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dayspringpublisher.com; s=default; h=Content-Type:MIME-Version:Date: Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=asRa5eEFaYv0qX3907YMmdCjOZH9/YppIfK+z9Xw+vg=; b=R4crrg8jKDOfe49mOWo5JsR0s XG0L5jpU/OXFZK6qTCSmx/VGEu/xcmK3YiVbMFxuBFelyK0j2S2esSxrP5mJYKrxUaGF5S70d0yPg 0tHqOyaBM7DEPRL7ba3cfWTFzE; Received: from [104.218.91.150] (port=55772 helo=[192.168.1.9]) by server.dayspringpublisher.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1hYHwV-0002f0-Kl for pgsql-general@lists.postgresql.org; Tue, 04 Jun 2019 16:30:07 -0600 To: pgsql-general@lists.postgresql.org From: Lou Subject: Converting yes or no to one letter strings. Message-ID: <555b017e-2449-43a4-19e6-4c19af6017e3@dayspringpublisher.com> Disposition-Notification-To: Lou Date: Tue, 4 Jun 2019 17:29:58 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------ED79445827F368D696ED2D78" Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.dayspringpublisher.com X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dayspringpublisher.com X-Get-Message-Sender-Via: server.dayspringpublisher.com: authenticated_id: lou@dayspringpublisher.com X-Authenticated-Sender: server.dayspringpublisher.com: lou@dayspringpublisher.com X-Source: X-Source-Args: X-Source-Dir: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------ED79445827F368D696ED2D78 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hi everyone, Is it possible to convert a boolean yes or no field to hold a one letter string? For example, the strings: 's' 'f' 'p' 'e' To start off, I just need to convert true to 's'. false will have to be manually changed to 'f' or 'p' or 'e' as appropriate. Lou --------------ED79445827F368D696ED2D78 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Hi everyone,

Is it possible to convert a boolean yes or no field to hold a one letter string? For example, the strings: 's' 'f' 'p' 'e'

To start off, I just need to convert true to 's'. false will have to be manually changed to 'f' or 'p' or 'e' as appropriate.

Lou

--------------ED79445827F368D696ED2D78--