title: Greenplum: Functions that execute SQL statements from the segDBs are not yet supported
body: <p>I get this error when I try to call a function from an Insert Trigger set on one of my tables in the SNE GP Edition:</p>
  
  <pre><code>ERROR:  Functions that execute SQL statements from the segDBs are not yet supported (spi.c:203)  (seg0 localhost:50001 pid=5504)
  DETAIL:  
    SQL statement "SELECT DISTINCT min(zasn) FROM zeusasn WHERE zasn IN (SELECT asn FROM asntable where ip &gt;&gt;= '10.29.249.121')"
  PL/pgSQL function "eptriggerfn" line 5 at SQL statement
  
  ********** Error **********
  
  ERROR: Functions that execute SQL statements from the segDBs are not yet supported (spi.c:203)  (seg0 localhost:50001 pid=5504)
  SQL state: XX000
  Detail: 
    SQL statement "SELECT DISTINCT min(zasn) FROM zeusasn WHERE zasn IN (SELECT asn FROM asntable where ip &gt;&gt;= '10.29.249.121')"
  PL/pgSQL function "eptriggerfn" line 5 at SQL statement
  </code></pre>
  
  <p>What can be the cause of this? Triggers + functions are working perfectly fine with another table in the same DB.</p>
  
  <p>Thanks in advance!</p>
  
  <p>Rgds,
  Kiran</p>