Re: RealDictCursor behavior question - Mailing list psycopg

From Christophe Pettus
Subject Re: RealDictCursor behavior question
Date
Msg-id 40DAA72D-1B8C-44E7-A561-D1B1DF96E440@thebuild.com
Whole thread Raw
In response to Re: RealDictCursor behavior question  (Israel Brewster <ibrewster@flyravn.com>)
Responses Re: RealDictCursor behavior question
List psycopg
> On Apr 30, 2018, at 12:19, Israel Brewster <ibrewster@flyravn.com> wrote:
> Yes, that is good reasoning *in general*, however in my particular use case, using `select *` makes things so much
cleaneras to be worth the -again, in my use case - quite small risk. At least, until now that was the case. :-)  

Remember that you can always introspect the column names, cache them locally, and then create whatever dict you want.
Thatway, it's 100% guaranteed to do the right thing for your application. 

--
-- Christophe Pettus
   xof@thebuild.com



psycopg by date:

Previous
From: Israel Brewster
Date:
Subject: Re: RealDictCursor behavior question
Next
From: Israel Brewster
Date:
Subject: Re: RealDictCursor behavior question