Odd quoting behavior from \set

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Odd quoting behavior from \set
Date: 2016-01-19 20:39:25
Message-ID: 569E9EFD.1050608@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is this odd quoting behavior expected? (Note difference between "'a':1"
and "'b':'a'")

> ~(at)decina(dot)local/53896# \set df pd.DataFrame.from_dict([{'a':1,'b':'a'},{'a':2,'b':'b'}])
> ~(at)decina(dot)local/53896# \echo :df
> pd.DataFrame.from_dict([{a:1,b:'a'},{a:2,b:'b'}])
> ~(at)decina(dot)local/53896#

--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2016-01-19 20:42:24 Re: Building 9.4 rpm for Red Hat 5
Previous Message AI Rumman 2016-01-19 20:37:22 Re: Building 9.4 rpm for Red Hat 5