PG_TOAST STORE PROBLEM
======================

Reporter: 
	Jan Pecek <honzap@gmail.com>
	Czech and Slovak PostgreSQL Users Group, Czech Republic

Summary:
	This package simulates problem with custom type and storying data in pg_toast.

Description
-----------
There is an example of schema, installation script and the script simulates the error. To reproduce run:
1. run install.sh as postgres user. It creates 'foo' database and imports schema and test record (in schema.sql file)
2. run run-test.sh and wait

After a few rounds, somethink similar of this will be occured:
ERROR:  missing chunk number 0 for toast value 35939 in pg_toast_35914
The problem is selection in 'changes' column, selecting other columns works fine. Doesn't depend on master or slave, 
this problem occurs at slaves to (while trying to make a select).

The file test-string.txt contains test data string. It has got about 47kB length but the error doesn't depend on data 
size or characters in test string. When the test data are longer the error occures earlier. It's good to use unusual
characters in test string (probably diacritics and diacritics) and during test running change it.

The error occurs while a time, sometimes early, sometimes later. It could depend on auto-vacuum process or something
like that. So, the waiting times are neccessary in run script. The file postgresql.conf is attached.

Testing version: 9.2.6
Uname: Linux ittsdbs-temp 3.2.0-59-generic #90-Ubuntu SMP Tue Jan 7 22:43:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Distro: Ubuntu 12.04.4 LTS
Repository: deb http://ppa.launchpad.net/pitti/postgresql/ubuntu precise main
