Re: [HACKERS] feature request - datum_compute_size and datum write_should be public

2012-02-01 Thread Tom Lane
Alvaro Herrera writes: > Excerpts from Jim Nasby's message of mié feb 01 20:47:05 -0300 2012: >> I'm not certain this in what Pavel is referring to, but I have often wished >> that I could pass something like an array into a function and have the >> function tell me exactly how much space that

Re: [HACKERS] feature request - datum_compute_size and datum write_should be public

2012-02-01 Thread Alvaro Herrera
Excerpts from Jim Nasby's message of mié feb 01 20:47:05 -0300 2012: > I'm not certain this in what Pavel is referring to, but I have often wished > that I could pass something like an array into a function and have the > function tell me exactly how much space that would require on-disk. It's

Re: [HACKERS] feature request - datum_compute_size and datum write_should be public

2012-02-01 Thread Jim Nasby
On Feb 1, 2012, at 12:45 AM, Pavel Stehule wrote: >>> I looked to sources and I found a some useful routines for people who >>> write extensions and probably PL too. >> >>> There are datum_compute_size and datum_write from range_types.c. These >>> routines can be used in PL libs and maybe in other

Re: [HACKERS] feature request - datum_compute_size and datum write_should be public

2012-01-31 Thread Pavel Stehule
2012/2/1 Tom Lane : > Pavel Stehule writes: >> I looked to sources and I found a some useful routines for people who >> write extensions and probably PL too. > >> There are datum_compute_size and datum_write from range_types.c. These >> routines can be used in PL libs and maybe in other places. >

Re: [HACKERS] feature request - datum_compute_size and datum write_should be public

2012-01-31 Thread Tom Lane
Pavel Stehule writes: > I looked to sources and I found a some useful routines for people who > write extensions and probably PL too. > There are datum_compute_size and datum_write from range_types.c. These > routines can be used in PL libs and maybe in other places. > Should be these routines m

[HACKERS] feature request - datum_compute_size and datum write_should be public

2012-01-31 Thread Pavel Stehule
Hello I looked to sources and I found a some useful routines for people who write extensions and probably PL too. There are datum_compute_size and datum_write from range_types.c. These routines can be used in PL libs and maybe in other places. Should be these routines moved to varlena.c and be p