Re: varchar() troubles - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: varchar() troubles
Date
Msg-id 199801190239.VAA02566@candle.pha.pa.us
Whole thread Raw
In response to varchar() troubles  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
List pgsql-hackers
>
> Bruce,
>
> The new varchar() stuff looks good, just a minor problem with "select into"
> where the new table does not seem to get a copy of the atttypmod value
> from the source table.
>
> I had a quick look at the code but guess you'll find the problem 10 times
> faster than I could.

OK, I have fixed this.  The real way to fix this it to add restypmod to
Resdom, and pass the value all the way through the engine, so tupDesc
always has the proper atttypmod value, but it is not clear how to do
this in the parser, so I put the code back in to just do a lookup in
execMain/execUtils when doing an SELECT * INTO TABLE.

If we start using atttypmod more, we will have to do this.

--
Bruce Momjian
maillist@candle.pha.pa.us

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Re: New pg_pwd patch and stuff
Next
From: "Martin J. Laubach"
Date:
Subject: Re: [HACKERS] Re: New pg_pwd patch and stuff