This is a small module to reproduce problem with GROUPING SETS.

1. Build PostgreSQL 10 from source.

2. Modify PGSQL_SRC_PATH to match with built PostgreSQL source in 1.

3. execute make in this directory

4. change /home/postgres/grouping_sets_segv/ in dummy_datatype.sql to this directory path

5. add <directory path>/dummy_datatype.so to postgresql.conf's shared_preload_libraries parameter.

6. restart PostgreSQL

7. execute psql -e -f test_segv.sql to your PostgreSQL server.
