21.05.2014 Views

Android & PostgreSQL (application/pdf - 311.5 KB) - PGCon

Android & PostgreSQL (application/pdf - 311.5 KB) - PGCon

Android & PostgreSQL (application/pdf - 311.5 KB) - PGCon

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NOTIFY: Send a notification<br />

Send a notification to the channel virtual:<br />

Statement stmt = conn . c r e a t e S t a t e m e n t ( ) ;<br />

stmt . e x e c u t e ( ”NOTIFY v i r t u a l ; ” ) ;<br />

stmt . c l o s e ( ) ;<br />

Note: Starting with <strong>PostgreSQL</strong> 9.0, there is the stored function<br />

pg notify(text, text) that can be used.<br />

markwkm (<strong>PGCon</strong>2011) <strong>Android</strong> & <strong>PostgreSQL</strong> 20 May 2011 24 / 37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!