Developer Perspective

Building

Q: Report error: "'openssl/ssl.h' file not found" when building hawq on Mac.

A: The problem can be:

Q: Report error: "'gram.c:1370:41: error: use of undeclared identifier 'yyscanner' yychar = yylex (&yylval, &yylloc, yyscanner)" when building hawq on Mac.

A: The problem can be:

Debugging & Fixing

Q: How to debug using LLDB on a Mac

Similiar to postrgres, please refer to the gist

Q: How to get all tuples with all MVCC versions in catalog table?

Need to set guc before running SELECT statement:   set gp_select_invisible=true;

Q: How to set fixed virtual segment number to run query?

Need to set enforce_virtual_segment_number for random table or default_hash_table_bucket_number for hash table.

User Perspective

Configuration

 

Optimization

Q: How to vacuum all catalog tables?

You can run below bash file:

#!/bin/bash

DBNAME="ddata"
VCOMMAND="VACUUM ANALYZE"

psql -tc "select '$VCOMMAND' || ' pg_catalog.' || relname || ';' from pg_class a,pg_namespace b where a.relnamespace=b.oid and b.nspname= 'pg_catalog' and a.relkind='r'" $DBNAME | psql -a $DBNAME

 

About this Wiki

How to get permission to edit