Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwwdX-0007ZR-2d for pgsql-general@arkaria.postgresql.org; Mon, 03 Sep 2018 21:43:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fwwdV-0008Ts-9P for pgsql-general@arkaria.postgresql.org; Mon, 03 Sep 2018 21:43:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwwdU-0008Tl-Vj for pgsql-general@lists.postgresql.org; Mon, 03 Sep 2018 21:43:53 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fwwdS-0000do-By for pgsql-general@lists.postgresql.org; Mon, 03 Sep 2018 21:43:52 +0000 Received: by mail-pg1-x543.google.com with SMTP id s7-v6so645354pgc.0 for ; Mon, 03 Sep 2018 14:43:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=HTU8fDEdA813LYax4+30VBF8XFSGTnAtSM+tS5VFRmk=; b=G5UP9GePZtYcuOov5W3DW/5wXx6XhJJG3v/ls0LXjR0Iqk4ESgilPjpNYX0NmW3rFp lD3lYpoXERCa2PG0sJVdUvrIDoaXx/RdtpQg8ynPEZvXuhX4dbhmeOwzrGTuEwKQhWy+ rr9ZjbkXv60xs3gRjs6uU/MGoDL52/4QlYiMZfs5uTNz8IgstG9uvf30pj4dNxHR4RVb 2NfeCTucNpcOGixIozLtu+UsD5busc7eGChGd5JVzN7Kgr0GedfmMVWJmQMxYR7aOBbp sO+LYuGkxKuwhuqrvRvO0zdb9XgwKEk3X2gJYbWL3Xf/U4FOuxH7WC7AwtBbyFYDjfQH Z56A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=HTU8fDEdA813LYax4+30VBF8XFSGTnAtSM+tS5VFRmk=; b=K02Avemh1pxh2Lf82zJIDJwpLbllxXriPb6MTLzbD87YRuKP23u0Zi0cbrRK0AzOzI xnr5l7gDrLhRIzEr9gC2L8bKs39sKyWsewMcQx9RQizLfVlpnQQGxihaeR29ML2MP75Q R5s1rmb/E/2gwbcRZxVT7YNf1Y2jKPhV8+kfd7LzYLGWHK0VoFdT8nRipXwybf54SiTg qkUXDoVPujBj9I5Nn19H9E/uiOvK/zy4r+ere3G7/3WXluzJdeLVVDOf22EY5pxWtDVo 4lDnPRUX/GjSV4MEl6OcvhKGtV1gpbLIj/ljVTLoDHiYS1eaTlJsaDx5PRjud9FGB+wy MKuw== X-Gm-Message-State: APzg51BduGHmV9qYQ7D6R7C1y0X5s/UYAVF4npTuM+Adw6DMooLWH/3I uqs7pqGGCF4EhVUN9aETamCHwsBD X-Google-Smtp-Source: ANB0Vdb8MdgSuBgsG0ELSRwaLhjLKXcygwd/fvR/o9J0l/epmB8RRXPXfVYsmWCF+tqagMs8/SHFPA== X-Received: by 2002:a62:6690:: with SMTP id s16-v6mr31598791pfj.152.1536011027486; Mon, 03 Sep 2018 14:43:47 -0700 (PDT) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id l84-v6sm46092007pfg.3.2018.09.03.14.43.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 14:43:47 -0700 (PDT) Subject: Re: Sv: Re: How to get shorter SERVER_VERSION in psql-prompt? To: pgsql-general@lists.postgresql.org References: <20180903214201.q4heutmvdr6hlble@alvherre.pgsql> From: Rob Sargent Message-ID: Date: Mon, 3 Sep 2018 15:43:46 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180903214201.q4heutmvdr6hlble@alvherre.pgsql> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 09/03/2018 03:42 PM, Alvaro Herrera wrote: > On 2018-Sep-03, Andreas Joseph Krogh wrote: > >> select setting as server_version from pg_settings where name = >> 'server_version'; >> ┌──────────────────────────────────┐ >> │          server_version          │ >> ├──────────────────────────────────┤ >> │ 10.5 (Ubuntu 10.5-1.pgdg18.04+1) │ >> └──────────────────────────────────┘ > Ugh. (So this is coming from "configure --with-extra-version" stuff) > > I guess you could just split it out at the first whitespace ... > Does that also diddle the value of "server_version_num"?