Search Postgresql Archives

Re: What happen to the VARATT_SIZEP macro in version 8.3?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/5/08, Don Pannese <don.pannese@xxxxxxx> wrote:
>
> I have C code which defines some user defined postgres functions. This code
> has been used with Postgres version 7.4 and it uses the VARATT_SIZEP macro.
>

seems that macro was deprecated in 8.3... this is the commit that removed it:
http://archives.postgresql.org/pgsql-committers/2007-02/msg00517.php

The new comment says:
!  * TOASTed.  Generally, only the code closely associated with TOAST logic
!  * should mess directly with struct varattrib or use the VARATT_FOO macros.

Why you need that macro at all? Now, of you really need it maybe you
can make your own wrapper in ine of your includes:

#define VARATT_SIZEP(_PTR)		\
		VARATT_SIZEP_DEPRECATED(PTR)


-- 
regards,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Guayaquil - Ecuador
Cel. (593) 87171157


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux