\set to create shortcut - Mailing list pgsql-admin

From Fabrice Chapuis
Subject \set to create shortcut
Date
Msg-id CAA5-nLAtwOJQjFkqTTQouU8FA9OwTGzPVTDTJ-6p7jfU32e_WA@mail.gmail.com
Whole thread Raw
Responses Re: \set to create shortcut
Re: \set to create shortcut
List pgsql-admin
Hi,
I want to persist a shortcut between session.
 
postgres [157394]=# \set cs 'select current_schema';
postgres [157394]=# :cs
┌────────────────┐
│ current_schema │
├────────────────┤
│ public         │
└────────────────┘
(1 row)

I put it in .pgsql_profile but it does not work

any idea?

pgsql-admin by date:

Previous
From: Fabrice Chapuis
Date:
Subject: Re: pg_restore option --clean
Next
From: Ulf Bengtner
Date:
Subject: Problems installing APT version