Re: printTable API (was: Show INHERIT in \du) - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: printTable API (was: Show INHERIT in \du)
Date
Msg-id 47EFBAA3.3060402@enterprisedb.com
Whole thread Raw
In response to printTable API (was: Show INHERIT in \du)  ("Brendan Jurd" <direvus@gmail.com>)
List pgsql-hackers
Brendan Jurd wrote:
>  1. describe malloc's the cells to zero, but print just does a local
> calloc without any initialisation.

Um, calloc is the same as malloc + zero. Those two seem identical to me.

>  2. describe only does an mbvalidate for WIN32, but print does it in all cases.

There's this comment in describe.c:

> /*
>  * mbvalidate() is used in function describeOneTableDetails() to make sure
>  * all characters of the cells will be printed to the DOS console in a
>  * correct way
>  */

I don't know what that's about. Perhaps there's something in the archives...

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: PFC
Date:
Subject: Re: first time hacker ;) messing with prepared statements
Next
From: Tom Lane
Date:
Subject: Re: printTable API (was: Show INHERIT in \du)