pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Parameter toast_tuple_target controls TOAST for new rows
9+ messages / 4 participants
[nested] [flat]
* pgsql: Parameter toast_tuple_target controls TOAST for new rows
@ 2017-11-19 22:52 Simon Riggs <simon@2ndQuadrant.com>
0 siblings, 1 reply; 9+ messages in thread
From: Simon Riggs @ 2017-11-19 22:52 UTC (permalink / raw)
To: pgsql-committers
Parameter toast_tuple_target controls TOAST for new rows
Specifies the point at which we try to move long column values
into TOAST tables.
No effect on existing rows.
Discussion: https://postgr.es/m/CANP8+jKsVmw6CX6YP9z7zqkTzcKV1+Uzr3XjKcZW=2Ya00OyQQ@mail.gmail.com
Author: Simon Riggs <simon@2ndQudrant.com>
Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndQuadrant.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c2513365a0a85e77d3c21adb92fe12cfbe0d1897
Modified Files
--------------
doc/src/sgml/ref/alter_table.sgml | 2 +-
doc/src/sgml/ref/create_table.sgml | 21 +++++++++++++++
src/backend/access/common/reloptions.c | 12 +++++++++
src/backend/access/heap/tuptoaster.c | 2 +-
src/include/utils/rel.h | 9 +++++++
src/test/regress/expected/strings.out | 47 ++++++++++++++++++++++++++++++++++
src/test/regress/sql/strings.sql | 19 ++++++++++++++
7 files changed, 110 insertions(+), 2 deletions(-)
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Parameter toast_tuple_target controls TOAST for new rows
@ 2017-11-20 00:08 Simon Riggs <simon@2ndquadrant.com>
parent: Simon Riggs <simon@2ndQuadrant.com>
0 siblings, 1 reply; 9+ messages in thread
From: Simon Riggs @ 2017-11-20 00:08 UTC (permalink / raw)
To: pgsql-committers
On 19 November 2017 at 17:52, Simon Riggs <simon@2ndquadrant.com> wrote:
> Parameter toast_tuple_target controls TOAST for new rows
>
> Specifies the point at which we try to move long column values
> into TOAST tables.
>
> No effect on existing rows.
>
> Discussion: https://postgr.es/m/CANP8+jKsVmw6CX6YP9z7zqkTzcKV1+Uzr3XjKcZW=2Ya00OyQQ@mail.gmail.com
>
> Author: Simon Riggs <simon@2ndQudrant.com>
> Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndQuadrant.com>
>
> Branch
> ------
> master
>
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/c2513365a0a85e77d3c21adb92fe12cfbe0d1897
>
> Modified Files
> --------------
> doc/src/sgml/ref/alter_table.sgml | 2 +-
> doc/src/sgml/ref/create_table.sgml | 21 +++++++++++++++
> src/backend/access/common/reloptions.c | 12 +++++++++
> src/backend/access/heap/tuptoaster.c | 2 +-
> src/include/utils/rel.h | 9 +++++++
> src/test/regress/expected/strings.out | 47 ++++++++++++++++++++++++++++++++++
> src/test/regress/sql/strings.sql | 19 ++++++++++++++
> 7 files changed, 110 insertions(+), 2 deletions(-)
Am investigating the few buildfarm failures
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Parameter toast_tuple_target controls TOAST for new rows
@ 2017-11-20 00:15 Andres Freund <andres@anarazel.de>
parent: Simon Riggs <simon@2ndquadrant.com>
0 siblings, 1 reply; 9+ messages in thread
From: Andres Freund @ 2017-11-20 00:15 UTC (permalink / raw)
To: Simon Riggs <simon@2ndquadrant.com>; +Cc: pgsql-committers
On 2017-11-19 19:08:48 -0500, Simon Riggs wrote:
> On 19 November 2017 at 17:52, Simon Riggs <simon@2ndquadrant.com> wrote:
> > Parameter toast_tuple_target controls TOAST for new rows
> >
> > Specifies the point at which we try to move long column values
> > into TOAST tables.
> >
> > No effect on existing rows.
> >
> > Discussion: https://postgr.es/m/CANP8+jKsVmw6CX6YP9z7zqkTzcKV1+Uzr3XjKcZW=2Ya00OyQQ@mail.gmail.com
> >
> > Author: Simon Riggs <simon@2ndQudrant.com>
> > Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndQuadrant.com>
> >
> > Branch
> > ------
> > master
> >
> > Details
> > -------
> > https://git.postgresql.org/pg/commitdiff/c2513365a0a85e77d3c21adb92fe12cfbe0d1897
> >
> > Modified Files
> > --------------
> > doc/src/sgml/ref/alter_table.sgml | 2 +-
> > doc/src/sgml/ref/create_table.sgml | 21 +++++++++++++++
> > src/backend/access/common/reloptions.c | 12 +++++++++
> > src/backend/access/heap/tuptoaster.c | 2 +-
> > src/include/utils/rel.h | 9 +++++++
> > src/test/regress/expected/strings.out | 47 ++++++++++++++++++++++++++++++++++
> > src/test/regress/sql/strings.sql | 19 ++++++++++++++
> > 7 files changed, 110 insertions(+), 2 deletions(-)
>
> Am investigating the few buildfarm failures
The tests look very sensitive to differences in tuple size due to
different alignment requirements. Dependant on what MAXALIGN (and some
others) is the number of tuples fitting on a page will differ.
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Parameter toast_tuple_target controls TOAST for new rows
@ 2017-11-20 00:49 Tom Lane <tgl@sss.pgh.pa.us>
parent: Andres Freund <andres@anarazel.de>
0 siblings, 2 replies; 9+ messages in thread
From: Tom Lane @ 2017-11-20 00:49 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Simon Riggs <simon@2ndquadrant.com>; pgsql-committers
Andres Freund <andres@anarazel.de> writes:
> On 2017-11-19 19:08:48 -0500, Simon Riggs wrote:
>> Am investigating the few buildfarm failures
> The tests look very sensitive to differences in tuple size due to
> different alignment requirements. Dependant on what MAXALIGN (and some
> others) is the number of tuples fitting on a page will differ.
"Few" buildfarm failures? It's probably going to fail on every 32-bit host.
TBH, I would just remove those test cases. Even if they were stable
across platforms, they don't directly prove anything at all about
whether the feature does what it's supposed to.
(Also, scaling the results to blocksize seems unlikely to help in
passing on different BLCKSZ configurations...)
regards, tom lane
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Parameter toast_tuple_target controls TOAST for new rows
@ 2017-11-20 00:52 Andres Freund <andres@anarazel.de>
parent: Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 2 replies; 9+ messages in thread
From: Andres Freund @ 2017-11-20 00:52 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Simon Riggs <simon@2ndquadrant.com>; pgsql-committers
On 2017-11-19 19:49:01 -0500, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > On 2017-11-19 19:08:48 -0500, Simon Riggs wrote:
> >> Am investigating the few buildfarm failures
>
> > The tests look very sensitive to differences in tuple size due to
> > different alignment requirements. Dependant on what MAXALIGN (and some
> > others) is the number of tuples fitting on a page will differ.
>
> "Few" buildfarm failures? It's probably going to fail on every 32-bit host.
>
> TBH, I would just remove those test cases. Even if they were stable
> across platforms, they don't directly prove anything at all about
> whether the feature does what it's supposed to.
>
> (Also, scaling the results to blocksize seems unlikely to help in
> passing on different BLCKSZ configurations...)
I think it might make sense to rewrite the tests so it doesn't output
any of the sizes, but instead just compares the size of tables with
different thresholds. That should be fairly reliable.
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Parameter toast_tuple_target controls TOAST for new rows
@ 2017-11-20 01:13 Simon Riggs <simon@2ndquadrant.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 9+ messages in thread
From: Simon Riggs @ 2017-11-20 01:13 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andres Freund <andres@anarazel.de>; pgsql-committers
On 19 November 2017 at 19:49, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Andres Freund <andres@anarazel.de> writes:
>> On 2017-11-19 19:08:48 -0500, Simon Riggs wrote:
>>> Am investigating the few buildfarm failures
>
>> The tests look very sensitive to differences in tuple size due to
>> different alignment requirements. Dependant on what MAXALIGN (and some
>> others) is the number of tuples fitting on a page will differ.
>
> "Few" buildfarm failures? It's probably going to fail on every 32-bit host.
>
> TBH, I would just remove those test cases. Even if they were stable
> across platforms, they don't directly prove anything at all about
> whether the feature does what it's supposed to.
>
> (Also, scaling the results to blocksize seems unlikely to help in
> passing on different BLCKSZ configurations...)
I just committed a change while this email arrived. I think what I've
done is essentially this.
The original test was more about demonstrating effectiveness.
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Parameter toast_tuple_target controls TOAST for new rows
@ 2017-11-20 01:30 Tom Lane <tgl@sss.pgh.pa.us>
parent: Andres Freund <andres@anarazel.de>
1 sibling, 1 reply; 9+ messages in thread
From: Tom Lane @ 2017-11-20 01:30 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Simon Riggs <simon@2ndquadrant.com>; pgsql-committers
Andres Freund <andres@anarazel.de> writes:
> On 2017-11-19 19:49:01 -0500, Tom Lane wrote:
>> TBH, I would just remove those test cases. Even if they were stable
>> across platforms, they don't directly prove anything at all about
>> whether the feature does what it's supposed to.
> I think it might make sense to rewrite the tests so it doesn't output
> any of the sizes, but instead just compares the size of tables with
> different thresholds. That should be fairly reliable.
Hm, what I'd try after a bit of thought is to stuff the same data
into two different tables with different settings chosen to make it
TOAST or not, and then just test the toast tables for zero or nonzero
size. Setting STORAGE = EXTERNAL on the data column to disable
compression would help make things more stable, too.
regards, tom lane
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Parameter toast_tuple_target controls TOAST for new rows
@ 2017-11-20 07:06 Simon Riggs <simon@2ndquadrant.com>
parent: Andres Freund <andres@anarazel.de>
1 sibling, 0 replies; 9+ messages in thread
From: Simon Riggs @ 2017-11-20 07:06 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-committers
On 19 November 2017 at 19:52, Andres Freund <andres@anarazel.de> wrote:
> On 2017-11-19 19:49:01 -0500, Tom Lane wrote:
>> Andres Freund <andres@anarazel.de> writes:
>> > On 2017-11-19 19:08:48 -0500, Simon Riggs wrote:
>> >> Am investigating the few buildfarm failures
>>
>> > The tests look very sensitive to differences in tuple size due to
>> > different alignment requirements. Dependant on what MAXALIGN (and some
>> > others) is the number of tuples fitting on a page will differ.
>>
>> "Few" buildfarm failures? It's probably going to fail on every 32-bit host.
>>
>> TBH, I would just remove those test cases. Even if they were stable
>> across platforms, they don't directly prove anything at all about
>> whether the feature does what it's supposed to.
>>
>> (Also, scaling the results to blocksize seems unlikely to help in
>> passing on different BLCKSZ configurations...)
>
> I think it might make sense to rewrite the tests so it doesn't output
> any of the sizes, but instead just compares the size of tables with
> different thresholds. That should be fairly reliable.
Thanks for your input.
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: pgsql: Parameter toast_tuple_target controls TOAST for new rows
@ 2017-11-20 07:09 Simon Riggs <simon@2ndquadrant.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 9+ messages in thread
From: Simon Riggs @ 2017-11-20 07:09 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andres Freund <andres@anarazel.de>; pgsql-committers
On 19 November 2017 at 20:30, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Andres Freund <andres@anarazel.de> writes:
>> On 2017-11-19 19:49:01 -0500, Tom Lane wrote:
>>> TBH, I would just remove those test cases. Even if they were stable
>>> across platforms, they don't directly prove anything at all about
>>> whether the feature does what it's supposed to.
>
>> I think it might make sense to rewrite the tests so it doesn't output
>> any of the sizes, but instead just compares the size of tables with
>> different thresholds. That should be fairly reliable.
>
> Hm, what I'd try after a bit of thought is to stuff the same data
> into two different tables with different settings chosen to make it
> TOAST or not, and then just test the toast tables for zero or nonzero
> size.
Roughly that.
> Setting STORAGE = EXTERNAL on the data column to disable
> compression would help make things more stable, too.
That was already set at line 350
--
Simon Riggs http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 9+ messages in thread
end of thread, other threads:[~2017-11-20 07:09 UTC | newest]
Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-19 22:52 pgsql: Parameter toast_tuple_target controls TOAST for new rows Simon Riggs <simon@2ndQuadrant.com>
2017-11-20 00:08 ` Simon Riggs <simon@2ndquadrant.com>
2017-11-20 00:15 ` Andres Freund <andres@anarazel.de>
2017-11-20 00:49 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-11-20 00:52 ` Andres Freund <andres@anarazel.de>
2017-11-20 01:30 ` Tom Lane <tgl@sss.pgh.pa.us>
2017-11-20 07:09 ` Simon Riggs <simon@2ndquadrant.com>
2017-11-20 07:06 ` Simon Riggs <simon@2ndquadrant.com>
2017-11-20 01:13 ` Simon Riggs <simon@2ndquadrant.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox