~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to contrib/tablefunc/tablefunc.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * contrib/tablefunc/tablefunc.h
 
3
 *
 
4
 *
 
5
 * tablefunc
 
6
 *
 
7
 * Sample to demonstrate C functions which return setof scalar
 
8
 * and setof composite.
 
9
 * Joe Conway <mail@joeconway.com>
 
10
 * And contributors:
 
11
 * Nabil Sayegh <postgresql@e-trolley.de>
 
12
 *
 
13
 * Copyright (c) 2002-2011, PostgreSQL Global Development Group
 
14
 *
 
15
 * Permission to use, copy, modify, and distribute this software and its
 
16
 * documentation for any purpose, without fee, and without a written agreement
 
17
 * is hereby granted, provided that the above copyright notice and this
 
18
 * paragraph and the following two paragraphs appear in all copies.
 
19
 *
 
20
 * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
 
21
 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
 
22
 * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
 
23
 * DOCUMENTATION, EVEN IF THE AUTHOR OR DISTRIBUTORS HAVE BEEN ADVISED OF THE
 
24
 * POSSIBILITY OF SUCH DAMAGE.
 
25
 *
 
26
 * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
 
27
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
 
28
 * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
 
29
 * ON AN "AS IS" BASIS, AND THE AUTHOR AND DISTRIBUTORS HAS NO OBLIGATIONS TO
 
30
 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 
31
 *
 
32
 */
 
33
 
 
34
#ifndef TABLEFUNC_H
 
35
#define TABLEFUNC_H
 
36
 
 
37
#include "fmgr.h"
 
38
 
 
39
/*
 
40
 * External declarations
 
41
 */
 
42
extern Datum normal_rand(PG_FUNCTION_ARGS);
 
43
extern Datum crosstab(PG_FUNCTION_ARGS);
 
44
extern Datum crosstab_hash(PG_FUNCTION_ARGS);
 
45
extern Datum connectby_text(PG_FUNCTION_ARGS);
 
46
extern Datum connectby_text_serial(PG_FUNCTION_ARGS);
 
47
 
 
48
#endif   /* TABLEFUNC_H */