mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
provided by Andrew.
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
* Copyright (c) 2008-2009, PostgreSQL Global Development Group
|
* Copyright (c) 2008-2009, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.4 2009/01/05 13:35:38 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/auto_explain/auto_explain.c,v 1.5 2009/06/11 14:48:50 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -138,9 +138,9 @@ explain_ExecutorStart(QueryDesc *queryDesc, int eflags)
|
|||||||
if (auto_explain_enabled())
|
if (auto_explain_enabled())
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Set up to track total elapsed time in ExecutorRun. Make sure
|
* Set up to track total elapsed time in ExecutorRun. Make sure the
|
||||||
* the space is allocated in the per-query context so it will go
|
* space is allocated in the per-query context so it will go away at
|
||||||
* away at ExecutorEnd.
|
* ExecutorEnd.
|
||||||
*/
|
*/
|
||||||
if (queryDesc->totaltime == NULL)
|
if (queryDesc->totaltime == NULL)
|
||||||
{
|
{
|
||||||
@ -187,8 +187,8 @@ explain_ExecutorEnd(QueryDesc *queryDesc)
|
|||||||
double msec;
|
double msec;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make sure stats accumulation is done. (Note: it's okay if
|
* Make sure stats accumulation is done. (Note: it's okay if several
|
||||||
* several levels of hook all do this.)
|
* levels of hook all do this.)
|
||||||
*/
|
*/
|
||||||
InstrEndLoop(queryDesc->totaltime);
|
InstrEndLoop(queryDesc->totaltime);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gin/btree_gin.c,v 1.1 2009/03/25 23:20:01 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gin/btree_gin.c,v 1.2 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -197,6 +197,7 @@ leftmostvalue_int2(void)
|
|||||||
return Int16GetDatum(SHRT_MIN);
|
return Int16GetDatum(SHRT_MIN);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_int2 = {false, leftmostvalue_int2, btint2cmp};
|
static TypeInfo TypeInfo_int2 = {false, leftmostvalue_int2, btint2cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(int2)
|
GIN_SUPPORT(int2)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -205,18 +206,20 @@ leftmostvalue_int4(void)
|
|||||||
return Int32GetDatum(INT_MIN);
|
return Int32GetDatum(INT_MIN);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_int4 = {false, leftmostvalue_int4, btint4cmp};
|
static TypeInfo TypeInfo_int4 = {false, leftmostvalue_int4, btint4cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(int4)
|
GIN_SUPPORT(int4)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
leftmostvalue_int8(void)
|
leftmostvalue_int8(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Use sequence's definition to keep compatibility.
|
* Use sequence's definition to keep compatibility. Another way may make a
|
||||||
* Another way may make a problem with INT64_IS_BUSTED
|
* problem with INT64_IS_BUSTED
|
||||||
*/
|
*/
|
||||||
return Int64GetDatum(SEQ_MINVALUE);
|
return Int64GetDatum(SEQ_MINVALUE);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_int8 = {false, leftmostvalue_int8, btint8cmp};
|
static TypeInfo TypeInfo_int8 = {false, leftmostvalue_int8, btint8cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(int8)
|
GIN_SUPPORT(int8)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -225,6 +228,7 @@ leftmostvalue_float4(void)
|
|||||||
return Float4GetDatum(-get_float4_infinity());
|
return Float4GetDatum(-get_float4_infinity());
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_float4 = {false, leftmostvalue_float4, btfloat4cmp};
|
static TypeInfo TypeInfo_float4 = {false, leftmostvalue_float4, btfloat4cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(float4)
|
GIN_SUPPORT(float4)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -233,18 +237,20 @@ leftmostvalue_float8(void)
|
|||||||
return Float8GetDatum(-get_float8_infinity());
|
return Float8GetDatum(-get_float8_infinity());
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_float8 = {false, leftmostvalue_float8, btfloat8cmp};
|
static TypeInfo TypeInfo_float8 = {false, leftmostvalue_float8, btfloat8cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(float8)
|
GIN_SUPPORT(float8)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
leftmostvalue_money(void)
|
leftmostvalue_money(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Use sequence's definition to keep compatibility.
|
* Use sequence's definition to keep compatibility. Another way may make a
|
||||||
* Another way may make a problem with INT64_IS_BUSTED
|
* problem with INT64_IS_BUSTED
|
||||||
*/
|
*/
|
||||||
return Int64GetDatum(SEQ_MINVALUE);
|
return Int64GetDatum(SEQ_MINVALUE);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_money = {false, leftmostvalue_money, cash_cmp};
|
static TypeInfo TypeInfo_money = {false, leftmostvalue_money, cash_cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(money)
|
GIN_SUPPORT(money)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -253,6 +259,7 @@ leftmostvalue_oid(void)
|
|||||||
return ObjectIdGetDatum(0);
|
return ObjectIdGetDatum(0);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_oid = {false, leftmostvalue_oid, btoidcmp};
|
static TypeInfo TypeInfo_oid = {false, leftmostvalue_oid, btoidcmp};
|
||||||
|
|
||||||
GIN_SUPPORT(oid)
|
GIN_SUPPORT(oid)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -261,9 +268,11 @@ leftmostvalue_timestamp(void)
|
|||||||
return TimestampGetDatum(DT_NOBEGIN);
|
return TimestampGetDatum(DT_NOBEGIN);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_timestamp = {false, leftmostvalue_timestamp, timestamp_cmp};
|
static TypeInfo TypeInfo_timestamp = {false, leftmostvalue_timestamp, timestamp_cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(timestamp)
|
GIN_SUPPORT(timestamp)
|
||||||
|
|
||||||
static TypeInfo TypeInfo_timestamptz = {false, leftmostvalue_timestamp, timestamp_cmp};
|
static TypeInfo TypeInfo_timestamptz = {false, leftmostvalue_timestamp, timestamp_cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(timestamptz)
|
GIN_SUPPORT(timestamptz)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -272,6 +281,7 @@ leftmostvalue_time(void)
|
|||||||
return TimeADTGetDatum(0);
|
return TimeADTGetDatum(0);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_time = {false, leftmostvalue_time, time_cmp};
|
static TypeInfo TypeInfo_time = {false, leftmostvalue_time, time_cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(time)
|
GIN_SUPPORT(time)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -285,6 +295,7 @@ leftmostvalue_timetz(void)
|
|||||||
return TimeTzADTPGetDatum(v);
|
return TimeTzADTPGetDatum(v);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_timetz = {false, leftmostvalue_timetz, timetz_cmp};
|
static TypeInfo TypeInfo_timetz = {false, leftmostvalue_timetz, timetz_cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(timetz)
|
GIN_SUPPORT(timetz)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -293,6 +304,7 @@ leftmostvalue_date(void)
|
|||||||
return DateADTGetDatum(DATEVAL_NOBEGIN);
|
return DateADTGetDatum(DATEVAL_NOBEGIN);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_date = {false, leftmostvalue_date, date_cmp};
|
static TypeInfo TypeInfo_date = {false, leftmostvalue_date, date_cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(date)
|
GIN_SUPPORT(date)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -306,6 +318,7 @@ leftmostvalue_interval(void)
|
|||||||
return IntervalPGetDatum(v);
|
return IntervalPGetDatum(v);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_interval = {false, leftmostvalue_interval, interval_cmp};
|
static TypeInfo TypeInfo_interval = {false, leftmostvalue_interval, interval_cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(interval)
|
GIN_SUPPORT(interval)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -316,6 +329,7 @@ leftmostvalue_macaddr(void)
|
|||||||
return MacaddrPGetDatum(v);
|
return MacaddrPGetDatum(v);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_macaddr = {false, leftmostvalue_macaddr, macaddr_cmp};
|
static TypeInfo TypeInfo_macaddr = {false, leftmostvalue_macaddr, macaddr_cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(macaddr)
|
GIN_SUPPORT(macaddr)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -327,9 +341,11 @@ leftmostvalue_inet(void)
|
|||||||
Int32GetDatum(-1));
|
Int32GetDatum(-1));
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_inet = {true, leftmostvalue_inet, network_cmp};
|
static TypeInfo TypeInfo_inet = {true, leftmostvalue_inet, network_cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(inet)
|
GIN_SUPPORT(inet)
|
||||||
|
|
||||||
static TypeInfo TypeInfo_cidr = {true, leftmostvalue_inet, network_cmp};
|
static TypeInfo TypeInfo_cidr = {true, leftmostvalue_inet, network_cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(cidr)
|
GIN_SUPPORT(cidr)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -338,6 +354,7 @@ leftmostvalue_text(void)
|
|||||||
return PointerGetDatum(cstring_to_text_with_len("", 0));
|
return PointerGetDatum(cstring_to_text_with_len("", 0));
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_text = {true, leftmostvalue_text, bttextcmp};
|
static TypeInfo TypeInfo_text = {true, leftmostvalue_text, bttextcmp};
|
||||||
|
|
||||||
GIN_SUPPORT(text)
|
GIN_SUPPORT(text)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -346,9 +363,11 @@ leftmostvalue_char(void)
|
|||||||
return CharGetDatum(SCHAR_MIN);
|
return CharGetDatum(SCHAR_MIN);
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_char = {false, leftmostvalue_char, btcharcmp};
|
static TypeInfo TypeInfo_char = {false, leftmostvalue_char, btcharcmp};
|
||||||
|
|
||||||
GIN_SUPPORT(char)
|
GIN_SUPPORT(char)
|
||||||
|
|
||||||
static TypeInfo TypeInfo_bytea = {true, leftmostvalue_text, byteacmp};
|
static TypeInfo TypeInfo_bytea = {true, leftmostvalue_text, byteacmp};
|
||||||
|
|
||||||
GIN_SUPPORT(bytea)
|
GIN_SUPPORT(bytea)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -360,6 +379,7 @@ leftmostvalue_bit(void)
|
|||||||
Int32GetDatum(-1));
|
Int32GetDatum(-1));
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_bit = {true, leftmostvalue_bit, bitcmp};
|
static TypeInfo TypeInfo_bit = {true, leftmostvalue_bit, bitcmp};
|
||||||
|
|
||||||
GIN_SUPPORT(bit)
|
GIN_SUPPORT(bit)
|
||||||
|
|
||||||
static Datum
|
static Datum
|
||||||
@ -371,6 +391,7 @@ leftmostvalue_varbit(void)
|
|||||||
Int32GetDatum(-1));
|
Int32GetDatum(-1));
|
||||||
}
|
}
|
||||||
static TypeInfo TypeInfo_varbit = {true, leftmostvalue_varbit, bitcmp};
|
static TypeInfo TypeInfo_varbit = {true, leftmostvalue_varbit, bitcmp};
|
||||||
|
|
||||||
GIN_SUPPORT(varbit)
|
GIN_SUPPORT(varbit)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -417,4 +438,5 @@ leftmostvalue_numeric(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static TypeInfo TypeInfo_numeric = {true, leftmostvalue_numeric, gin_numeric_cmp};
|
static TypeInfo TypeInfo_numeric = {true, leftmostvalue_numeric, gin_numeric_cmp};
|
||||||
|
|
||||||
GIN_SUPPORT(numeric)
|
GIN_SUPPORT(numeric)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_bit.c,v 1.9 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_bit.c,v 1.10 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_var.h"
|
#include "btree_utils_var.h"
|
||||||
@ -131,6 +131,7 @@ gbt_bit_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
void *query = (void *) DatumGetByteaP(PG_GETARG_DATUM(1));
|
void *query = (void *) DatumGetByteaP(PG_GETARG_DATUM(1));
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
bool retval = FALSE;
|
bool retval = FALSE;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_bytea.c,v 1.8 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_bytea.c,v 1.9 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_var.h"
|
#include "btree_utils_var.h"
|
||||||
@ -101,6 +101,7 @@ gbt_bytea_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
void *query = (void *) DatumGetByteaP(PG_GETARG_DATUM(1));
|
void *query = (void *) DatumGetByteaP(PG_GETARG_DATUM(1));
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
bool retval;
|
bool retval;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_cash.c,v 1.8 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_cash.c,v 1.9 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -101,6 +101,7 @@ gbt_cash_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
Cash query = PG_GETARG_CASH(1);
|
Cash query = PG_GETARG_CASH(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
cashKEY *kkk = (cashKEY *) DatumGetPointer(entry->key);
|
cashKEY *kkk = (cashKEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_date.c,v 1.6 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_date.c,v 1.7 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -117,6 +117,7 @@ gbt_date_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
DateADT query = PG_GETARG_DATEADT(1);
|
DateADT query = PG_GETARG_DATEADT(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
dateKEY *kkk = (dateKEY *) DatumGetPointer(entry->key);
|
dateKEY *kkk = (dateKEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_float4.c,v 1.7 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_float4.c,v 1.8 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -100,6 +100,7 @@ gbt_float4_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
float4 query = PG_GETARG_FLOAT4(1);
|
float4 query = PG_GETARG_FLOAT4(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
float4KEY *kkk = (float4KEY *) DatumGetPointer(entry->key);
|
float4KEY *kkk = (float4KEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_float8.c,v 1.7 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_float8.c,v 1.8 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -101,6 +101,7 @@ gbt_float8_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
float8 query = PG_GETARG_FLOAT8(1);
|
float8 query = PG_GETARG_FLOAT8(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
float8KEY *kkk = (float8KEY *) DatumGetPointer(entry->key);
|
float8KEY *kkk = (float8KEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_gist.c,v 1.12 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_gist.c,v 1.13 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_gist.h,v 1.8 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_gist.h,v 1.9 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef __BTREE_GIST_H__
|
#ifndef __BTREE_GIST_H__
|
||||||
#define __BTREE_GIST_H__
|
#define __BTREE_GIST_H__
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_inet.c,v 1.9 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_inet.c,v 1.10 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -118,6 +118,7 @@ gbt_inet_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
double query = convert_network_to_scalar(PG_GETARG_DATUM(1), INETOID);
|
double query = convert_network_to_scalar(PG_GETARG_DATUM(1), INETOID);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
inetKEY *kkk = (inetKEY *) DatumGetPointer(entry->key);
|
inetKEY *kkk = (inetKEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_int2.c,v 1.7 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_int2.c,v 1.8 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -104,6 +104,7 @@ gbt_int2_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
int16 query = PG_GETARG_INT16(1);
|
int16 query = PG_GETARG_INT16(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
int16KEY *kkk = (int16KEY *) DatumGetPointer(entry->key);
|
int16KEY *kkk = (int16KEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_int4.c,v 1.7 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_int4.c,v 1.8 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -101,6 +101,7 @@ gbt_int4_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
int32 query = PG_GETARG_INT32(1);
|
int32 query = PG_GETARG_INT32(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
int32KEY *kkk = (int32KEY *) DatumGetPointer(entry->key);
|
int32KEY *kkk = (int32KEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_int8.c,v 1.7 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_int8.c,v 1.8 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -101,6 +101,7 @@ gbt_int8_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
int64 query = PG_GETARG_INT64(1);
|
int64 query = PG_GETARG_INT64(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
int64KEY *kkk = (int64KEY *) DatumGetPointer(entry->key);
|
int64KEY *kkk = (int64KEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_interval.c,v 1.11 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_interval.c,v 1.12 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -169,6 +169,7 @@ gbt_intv_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
Interval *query = PG_GETARG_INTERVAL_P(1);
|
Interval *query = PG_GETARG_INTERVAL_P(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
intvKEY *kkk = (intvKEY *) DatumGetPointer(entry->key);
|
intvKEY *kkk = (intvKEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_macaddr.c,v 1.7 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_macaddr.c,v 1.8 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -122,6 +122,7 @@ gbt_macad_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
macaddr *query = (macaddr *) PG_GETARG_POINTER(1);
|
macaddr *query = (macaddr *) PG_GETARG_POINTER(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
macKEY *kkk = (macKEY *) DatumGetPointer(entry->key);
|
macKEY *kkk = (macKEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_numeric.c,v 1.12 2008/06/19 00:46:02 alvherre Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_numeric.c,v 1.13 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
|
|
||||||
@ -106,6 +106,7 @@ gbt_numeric_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
void *query = (void *) DatumGetNumeric(PG_GETARG_DATUM(1));
|
void *query = (void *) DatumGetNumeric(PG_GETARG_DATUM(1));
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
bool retval;
|
bool retval;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_oid.c,v 1.7 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_oid.c,v 1.8 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -101,6 +101,7 @@ gbt_oid_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
Oid query = PG_GETARG_OID(1);
|
Oid query = PG_GETARG_OID(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
oidKEY *kkk = (oidKEY *) DatumGetPointer(entry->key);
|
oidKEY *kkk = (oidKEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_text.c,v 1.11 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_text.c,v 1.12 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_var.h"
|
#include "btree_utils_var.h"
|
||||||
@ -135,6 +135,7 @@ gbt_text_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
void *query = (void *) DatumGetTextP(PG_GETARG_DATUM(1));
|
void *query = (void *) DatumGetTextP(PG_GETARG_DATUM(1));
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
bool retval;
|
bool retval;
|
||||||
@ -161,6 +162,7 @@ gbt_bpchar_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
void *query = (void *) DatumGetPointer(PG_DETOAST_DATUM(PG_GETARG_DATUM(1)));
|
void *query = (void *) DatumGetPointer(PG_DETOAST_DATUM(PG_GETARG_DATUM(1)));
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
bool retval;
|
bool retval;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_time.c,v 1.15 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_time.c,v 1.16 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -175,6 +175,7 @@ gbt_time_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
TimeADT query = PG_GETARG_TIMEADT(1);
|
TimeADT query = PG_GETARG_TIMEADT(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
timeKEY *kkk = (timeKEY *) DatumGetPointer(entry->key);
|
timeKEY *kkk = (timeKEY *) DatumGetPointer(entry->key);
|
||||||
@ -197,6 +198,7 @@ gbt_timetz_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
TimeTzADT *query = PG_GETARG_TIMETZADT_P(1);
|
TimeTzADT *query = PG_GETARG_TIMETZADT_P(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
timeKEY *kkk = (timeKEY *) DatumGetPointer(entry->key);
|
timeKEY *kkk = (timeKEY *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_ts.c,v 1.16 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_ts.c,v 1.17 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
@ -192,6 +192,7 @@ gbt_ts_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
Timestamp query = PG_GETARG_TIMESTAMP(1);
|
Timestamp query = PG_GETARG_TIMESTAMP(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
tsKEY *kkk = (tsKEY *) DatumGetPointer(entry->key);
|
tsKEY *kkk = (tsKEY *) DatumGetPointer(entry->key);
|
||||||
@ -214,6 +215,7 @@ gbt_tstz_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
TimestampTz query = PG_GETARG_TIMESTAMPTZ(1);
|
TimestampTz query = PG_GETARG_TIMESTAMPTZ(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
char *kkk = (char *) DatumGetPointer(entry->key);
|
char *kkk = (char *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_utils_num.c,v 1.11 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_utils_num.c,v 1.12 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
#include "btree_utils_num.h"
|
#include "btree_utils_num.h"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_utils_num.h,v 1.13 2008/06/19 00:46:02 alvherre Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_utils_num.h,v 1.14 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef __BTREE_UTILS_NUM_H__
|
#ifndef __BTREE_UTILS_NUM_H__
|
||||||
#define __BTREE_UTILS_NUM_H__
|
#define __BTREE_UTILS_NUM_H__
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_utils_var.c,v 1.20 2008/06/19 00:46:02 alvherre Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_utils_var.c,v 1.21 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "btree_gist.h"
|
#include "btree_gist.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/btree_gist/btree_utils_var.h,v 1.8 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/btree_gist/btree_utils_var.h,v 1.9 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef __BTREE_UTILS_VAR_H__
|
#ifndef __BTREE_UTILS_VAR_H__
|
||||||
#define __BTREE_UTILS_VAR_H__
|
#define __BTREE_UTILS_VAR_H__
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* darcy@druid.net
|
* darcy@druid.net
|
||||||
* http://www.druid.net/darcy/
|
* http://www.druid.net/darcy/
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/chkpass/chkpass.c,v 1.20 2008/03/25 22:42:41 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/chkpass/chkpass.c,v 1.21 2009/06/11 14:48:50 momjian Exp $
|
||||||
* best viewed with tabs set to 4
|
* best viewed with tabs set to 4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/citext/citext.c,v 1.1 2008/07/29 18:31:20 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/citext/citext.c,v 1.2 2009/06/11 14:48:50 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -44,7 +44,8 @@ extern Datum citext_larger (PG_FUNCTION_ARGS);
|
|||||||
static int32
|
static int32
|
||||||
citextcmp(text *left, text *right)
|
citextcmp(text *left, text *right)
|
||||||
{
|
{
|
||||||
char *lcstr, *rcstr;
|
char *lcstr,
|
||||||
|
*rcstr;
|
||||||
int32 result;
|
int32 result;
|
||||||
|
|
||||||
lcstr = str_tolower(VARDATA_ANY(left), VARSIZE_ANY_EXHDR(left));
|
lcstr = str_tolower(VARDATA_ANY(left), VARSIZE_ANY_EXHDR(left));
|
||||||
@ -114,7 +115,8 @@ citext_eq(PG_FUNCTION_ARGS)
|
|||||||
{
|
{
|
||||||
text *left = PG_GETARG_TEXT_PP(0);
|
text *left = PG_GETARG_TEXT_PP(0);
|
||||||
text *right = PG_GETARG_TEXT_PP(1);
|
text *right = PG_GETARG_TEXT_PP(1);
|
||||||
char *lcstr, *rcstr;
|
char *lcstr,
|
||||||
|
*rcstr;
|
||||||
bool result;
|
bool result;
|
||||||
|
|
||||||
/* We can't compare lengths in advance of downcasing ... */
|
/* We can't compare lengths in advance of downcasing ... */
|
||||||
@ -123,9 +125,8 @@ citext_eq(PG_FUNCTION_ARGS)
|
|||||||
rcstr = str_tolower(VARDATA_ANY(right), VARSIZE_ANY_EXHDR(right));
|
rcstr = str_tolower(VARDATA_ANY(right), VARSIZE_ANY_EXHDR(right));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Since we only care about equality or not-equality, we can
|
* Since we only care about equality or not-equality, we can avoid all the
|
||||||
* avoid all the expense of strcoll() here, and just do bitwise
|
* expense of strcoll() here, and just do bitwise comparison.
|
||||||
* comparison.
|
|
||||||
*/
|
*/
|
||||||
result = (strcmp(lcstr, rcstr) == 0);
|
result = (strcmp(lcstr, rcstr) == 0);
|
||||||
|
|
||||||
@ -144,7 +145,8 @@ citext_ne(PG_FUNCTION_ARGS)
|
|||||||
{
|
{
|
||||||
text *left = PG_GETARG_TEXT_PP(0);
|
text *left = PG_GETARG_TEXT_PP(0);
|
||||||
text *right = PG_GETARG_TEXT_PP(1);
|
text *right = PG_GETARG_TEXT_PP(1);
|
||||||
char *lcstr, *rcstr;
|
char *lcstr,
|
||||||
|
*rcstr;
|
||||||
bool result;
|
bool result;
|
||||||
|
|
||||||
/* We can't compare lengths in advance of downcasing ... */
|
/* We can't compare lengths in advance of downcasing ... */
|
||||||
@ -153,9 +155,8 @@ citext_ne(PG_FUNCTION_ARGS)
|
|||||||
rcstr = str_tolower(VARDATA_ANY(right), VARSIZE_ANY_EXHDR(right));
|
rcstr = str_tolower(VARDATA_ANY(right), VARSIZE_ANY_EXHDR(right));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Since we only care about equality or not-equality, we can
|
* Since we only care about equality or not-equality, we can avoid all the
|
||||||
* avoid all the expense of strcoll() here, and just do bitwise
|
* expense of strcoll() here, and just do bitwise comparison.
|
||||||
* comparison.
|
|
||||||
*/
|
*/
|
||||||
result = (strcmp(lcstr, rcstr) != 0);
|
result = (strcmp(lcstr, rcstr) != 0);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
$PostgreSQL: pgsql/contrib/cube/cube.c,v 1.36 2008/05/29 18:46:40 tgl Exp $
|
$PostgreSQL: pgsql/contrib/cube/cube.c,v 1.37 2009/06/11 14:48:50 momjian Exp $
|
||||||
|
|
||||||
This file contains routines that can be bound to a Postgres backend and
|
This file contains routines that can be bound to a Postgres backend and
|
||||||
called by the backend in the process of processing queries. The calling
|
called by the backend in the process of processing queries. The calling
|
||||||
@ -359,6 +359,7 @@ g_cube_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
NDBOX *query = PG_GETARG_NDBOX(1);
|
NDBOX *query = PG_GETARG_NDBOX(1);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
bool res;
|
bool res;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $PostgreSQL: pgsql/contrib/cube/cubedata.h,v 1.9 2007/03/07 21:21:12 teodor Exp $ */
|
/* $PostgreSQL: pgsql/contrib/cube/cubedata.h,v 1.10 2009/06/11 14:48:50 momjian Exp $ */
|
||||||
|
|
||||||
#define CUBE_MAX_DIM (100)
|
#define CUBE_MAX_DIM (100)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* Darko Prenosil <Darko.Prenosil@finteh.hr>
|
* Darko Prenosil <Darko.Prenosil@finteh.hr>
|
||||||
* Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
|
* Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.81 2009/06/09 17:41:02 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.82 2009/06/11 14:48:50 momjian Exp $
|
||||||
* Copyright (c) 2001-2009, PostgreSQL Global Development Group
|
* Copyright (c) 2001-2009, PostgreSQL Global Development Group
|
||||||
* ALL RIGHTS RESERVED;
|
* ALL RIGHTS RESERVED;
|
||||||
*
|
*
|
||||||
@ -576,9 +576,9 @@ dblink_fetch(PG_FUNCTION_ARGS)
|
|||||||
funcctx = SRF_FIRSTCALL_INIT();
|
funcctx = SRF_FIRSTCALL_INIT();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Try to execute the query. Note that since libpq uses malloc,
|
* Try to execute the query. Note that since libpq uses malloc, the
|
||||||
* the PGresult will be long-lived even though we are still in
|
* PGresult will be long-lived even though we are still in a
|
||||||
* a short-lived memory context.
|
* short-lived memory context.
|
||||||
*/
|
*/
|
||||||
res = PQexec(conn, buf.data);
|
res = PQexec(conn, buf.data);
|
||||||
if (!res ||
|
if (!res ||
|
||||||
@ -629,8 +629,8 @@ dblink_fetch(PG_FUNCTION_ARGS)
|
|||||||
"the specified FROM clause rowtype")));
|
"the specified FROM clause rowtype")));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* fast track when no results. We could exit earlier, but then
|
* fast track when no results. We could exit earlier, but then we'd
|
||||||
* we'd not report error if the result tuple type is wrong.
|
* not report error if the result tuple type is wrong.
|
||||||
*/
|
*/
|
||||||
if (funcctx->max_calls < 1)
|
if (funcctx->max_calls < 1)
|
||||||
{
|
{
|
||||||
@ -872,8 +872,8 @@ dblink_record_internal(FunctionCallInfo fcinfo, bool is_async)
|
|||||||
TEXTOID, -1, 0);
|
TEXTOID, -1, 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* and save a copy of the command status string to return as
|
* and save a copy of the command status string to return as our
|
||||||
* our result tuple
|
* result tuple
|
||||||
*/
|
*/
|
||||||
sql_cmd_status = PQcmdStatus(res);
|
sql_cmd_status = PQcmdStatus(res);
|
||||||
funcctx->max_calls = 1;
|
funcctx->max_calls = 1;
|
||||||
@ -914,8 +914,7 @@ dblink_record_internal(FunctionCallInfo fcinfo, bool is_async)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* check result and tuple descriptor have the same number of
|
* check result and tuple descriptor have the same number of columns
|
||||||
* columns
|
|
||||||
*/
|
*/
|
||||||
if (PQnfields(res) != tupdesc->natts)
|
if (PQnfields(res) != tupdesc->natts)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* Copyright (c) 2007-2009, PostgreSQL Global Development Group
|
* Copyright (c) 2007-2009, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/contrib/dict_int/dict_int.c,v 1.4 2009/01/01 17:23:32 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/dict_int/dict_int.c,v 1.5 2009/06/11 14:48:50 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.15 2008/04/21 01:11:43 tgl Exp $ */
|
/* $PostgreSQL: pgsql/contrib/earthdistance/earthdistance.c,v 1.16 2009/06/11 14:48:51 momjian Exp $ */
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -100,6 +100,7 @@ geo_distance_internal(Point *pt1, Point *pt2)
|
|||||||
#ifdef USE_FLOAT8_BYVAL
|
#ifdef USE_FLOAT8_BYVAL
|
||||||
|
|
||||||
Datum geo_distance(PG_FUNCTION_ARGS);
|
Datum geo_distance(PG_FUNCTION_ARGS);
|
||||||
|
|
||||||
PG_FUNCTION_INFO_V1(geo_distance);
|
PG_FUNCTION_INFO_V1(geo_distance);
|
||||||
|
|
||||||
Datum
|
Datum
|
||||||
@ -112,7 +113,6 @@ geo_distance(PG_FUNCTION_ARGS)
|
|||||||
result = geo_distance_internal(pt1, pt2);
|
result = geo_distance_internal(pt1, pt2);
|
||||||
PG_RETURN_FLOAT8(result);
|
PG_RETURN_FLOAT8(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* !USE_FLOAT8_BYVAL */
|
#else /* !USE_FLOAT8_BYVAL */
|
||||||
|
|
||||||
double *geo_distance(Point *pt1, Point *pt2);
|
double *geo_distance(Point *pt1, Point *pt2);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* This is a port of the Double Metaphone algorithm for use in PostgreSQL.
|
* This is a port of the Double Metaphone algorithm for use in PostgreSQL.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/dmetaphone.c,v 1.12 2008/03/25 22:42:41 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/dmetaphone.c,v 1.13 2009/06/11 14:48:51 momjian Exp $
|
||||||
*
|
*
|
||||||
* Double Metaphone computes 2 "sounds like" strings - a primary and an
|
* Double Metaphone computes 2 "sounds like" strings - a primary and an
|
||||||
* alternate. In most cases they are the same, but for foreign names
|
* alternate. In most cases they are the same, but for foreign names
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* Joe Conway <mail@joeconway.com>
|
* Joe Conway <mail@joeconway.com>
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.c,v 1.29 2009/04/07 15:53:54 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/fuzzystrmatch/fuzzystrmatch.c,v 1.30 2009/06/11 14:48:51 momjian Exp $
|
||||||
* Copyright (c) 2001-2009, PostgreSQL Global Development Group
|
* Copyright (c) 2001-2009, PostgreSQL Global Development Group
|
||||||
* ALL RIGHTS RESERVED;
|
* ALL RIGHTS RESERVED;
|
||||||
*
|
*
|
||||||
@ -194,10 +194,12 @@ static int
|
|||||||
levenshtein_internal(const char *s, const char *t,
|
levenshtein_internal(const char *s, const char *t,
|
||||||
int ins_c, int del_c, int sub_c)
|
int ins_c, int del_c, int sub_c)
|
||||||
{
|
{
|
||||||
int m, n;
|
int m,
|
||||||
|
n;
|
||||||
int *prev;
|
int *prev;
|
||||||
int *curr;
|
int *curr;
|
||||||
int i, j;
|
int i,
|
||||||
|
j;
|
||||||
const char *x;
|
const char *x;
|
||||||
const char *y;
|
const char *y;
|
||||||
|
|
||||||
@ -205,9 +207,8 @@ levenshtein_internal(const char *s, const char *t,
|
|||||||
n = strlen(t);
|
n = strlen(t);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If either m or n is 0, the answer is the other value. This makes
|
* If either m or n is 0, the answer is the other value. This makes sense
|
||||||
* sense since it would take that many insertions to build a matching
|
* since it would take that many insertions to build a matching string
|
||||||
* string
|
|
||||||
*/
|
*/
|
||||||
if (!m)
|
if (!m)
|
||||||
return n;
|
return n;
|
||||||
@ -230,10 +231,10 @@ levenshtein_internal(const char *s, const char *t,
|
|||||||
++n;
|
++n;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Instead of building an (m+1)x(n+1) array, we'll use two
|
* Instead of building an (m+1)x(n+1) array, we'll use two different
|
||||||
* different arrays of size m+1 for storing accumulated values.
|
* arrays of size m+1 for storing accumulated values. At each step one
|
||||||
* At each step one represents the "previous" row and one is the
|
* represents the "previous" row and one is the "current" row of the
|
||||||
* "current" row of the notional large array.
|
* notional large array.
|
||||||
*/
|
*/
|
||||||
prev = (int *) palloc(2 * m * sizeof(int));
|
prev = (int *) palloc(2 * m * sizeof(int));
|
||||||
curr = prev + m;
|
curr = prev + m;
|
||||||
@ -248,8 +249,8 @@ levenshtein_internal(const char *s, const char *t,
|
|||||||
int *temp;
|
int *temp;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* First cell must increment sequentially, as we're on the
|
* First cell must increment sequentially, as we're on the j'th row of
|
||||||
* j'th row of the (m+1)x(n+1) array.
|
* the (m+1)x(n+1) array.
|
||||||
*/
|
*/
|
||||||
curr[0] = j;
|
curr[0] = j;
|
||||||
|
|
||||||
@ -276,8 +277,8 @@ levenshtein_internal(const char *s, const char *t,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Because the final value was swapped from the previous row to
|
* Because the final value was swapped from the previous row to the
|
||||||
* the current row, that's where we'll find it.
|
* current row, that's where we'll find it.
|
||||||
*/
|
*/
|
||||||
return prev[m - 1];
|
return prev[m - 1];
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/hstore/crc32.c,v 1.3 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/hstore/crc32.c,v 1.4 2009/06/11 14:48:51 momjian Exp $
|
||||||
*
|
*
|
||||||
* Both POSIX and CRC32 checksums */
|
* Both POSIX and CRC32 checksums */
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/hstore/crc32.h,v 1.2 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/hstore/crc32.h,v 1.3 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef _CRC32_H
|
#ifndef _CRC32_H
|
||||||
#define _CRC32_H
|
#define _CRC32_H
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/hstore/hstore.h,v 1.7 2009/03/15 22:05:17 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/hstore/hstore.h,v 1.8 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef __HSTORE_H__
|
#ifndef __HSTORE_H__
|
||||||
#define __HSTORE_H__
|
#define __HSTORE_H__
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/hstore/hstore_gin.c,v 1.5 2009/03/25 22:19:01 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/hstore/hstore_gin.c,v 1.6 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -122,6 +122,7 @@ gin_consistent_hstore(PG_FUNCTION_ARGS)
|
|||||||
bool *check = (bool *) PG_GETARG_POINTER(0);
|
bool *check = (bool *) PG_GETARG_POINTER(0);
|
||||||
StrategyNumber strategy = PG_GETARG_UINT16(1);
|
StrategyNumber strategy = PG_GETARG_UINT16(1);
|
||||||
HStore *query = PG_GETARG_HS(2);
|
HStore *query = PG_GETARG_HS(2);
|
||||||
|
|
||||||
/* int32 nkeys = PG_GETARG_INT32(3); */
|
/* int32 nkeys = PG_GETARG_INT32(3); */
|
||||||
/* Pointer *extra_data = (Pointer *) PG_GETARG_POINTER(4); */
|
/* Pointer *extra_data = (Pointer *) PG_GETARG_POINTER(4); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(5);
|
bool *recheck = (bool *) PG_GETARG_POINTER(5);
|
||||||
@ -132,8 +133,8 @@ gin_consistent_hstore(PG_FUNCTION_ARGS)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Index lost information about correspondence of keys
|
* Index lost information about correspondence of keys and values, so
|
||||||
* and values, so we need recheck
|
* we need recheck
|
||||||
*/
|
*/
|
||||||
*recheck = true;
|
*recheck = true;
|
||||||
for (i = 0; res && i < 2 * query->size; i++)
|
for (i = 0; res && i < 2 * query->size; i++)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/hstore/hstore_gist.c,v 1.9 2008/05/12 00:00:42 alvherre Exp $
|
* $PostgreSQL: pgsql/contrib/hstore/hstore_gist.c,v 1.10 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -514,6 +514,7 @@ ghstore_consistent(PG_FUNCTION_ARGS)
|
|||||||
{
|
{
|
||||||
GISTTYPE *entry = (GISTTYPE *) DatumGetPointer(((GISTENTRY *) PG_GETARG_POINTER(0))->key);
|
GISTTYPE *entry = (GISTTYPE *) DatumGetPointer(((GISTENTRY *) PG_GETARG_POINTER(0))->key);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
bool res = true;
|
bool res = true;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/hstore/hstore_io.c,v 1.10 2009/04/02 17:57:05 teodor Exp $
|
* $PostgreSQL: pgsql/contrib/hstore/hstore_io.c,v 1.11 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/intarray/_int.h,v 1.16 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/intarray/_int.h,v 1.17 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef ___INT_H__
|
#ifndef ___INT_H__
|
||||||
#define ___INT_H__
|
#define ___INT_H__
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/intarray/_int_bool.c,v 1.15 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/intarray/_int_bool.c,v 1.16 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/intarray/_int_gin.c,v 1.9 2009/03/25 22:19:01 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/intarray/_int_gin.c,v 1.10 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -90,6 +90,7 @@ ginint4_consistent(PG_FUNCTION_ARGS)
|
|||||||
{
|
{
|
||||||
bool *check = (bool *) PG_GETARG_POINTER(0);
|
bool *check = (bool *) PG_GETARG_POINTER(0);
|
||||||
StrategyNumber strategy = PG_GETARG_UINT16(1);
|
StrategyNumber strategy = PG_GETARG_UINT16(1);
|
||||||
|
|
||||||
/* int32 nkeys = PG_GETARG_INT32(3); */
|
/* int32 nkeys = PG_GETARG_INT32(3); */
|
||||||
/* Pointer *extra_data = (Pointer *) PG_GETARG_POINTER(4); */
|
/* Pointer *extra_data = (Pointer *) PG_GETARG_POINTER(4); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(5);
|
bool *recheck = (bool *) PG_GETARG_POINTER(5);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/intarray/_int_gist.c,v 1.22 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/intarray/_int_gist.c,v 1.23 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -42,6 +42,7 @@ g_int_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
ArrayType *query = (ArrayType *) PG_DETOAST_DATUM_COPY(PG_GETARG_POINTER(1));
|
ArrayType *query = (ArrayType *) PG_DETOAST_DATUM_COPY(PG_GETARG_POINTER(1));
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
bool retval;
|
bool retval;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/intarray/_int_op.c,v 1.8 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/intarray/_int_op.c,v 1.9 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/intarray/_int_tool.c,v 1.11 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/intarray/_int_tool.c,v 1.12 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/intarray/_intbig_gist.c,v 1.19 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/intarray/_intbig_gist.c,v 1.20 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -506,6 +506,7 @@ g_intbig_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
ArrayType *query = (ArrayType *) PG_DETOAST_DATUM(PG_GETARG_POINTER(1));
|
ArrayType *query = (ArrayType *) PG_DETOAST_DATUM(PG_GETARG_POINTER(1));
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
bool retval;
|
bool retval;
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/contrib/isn/isn.c,v 1.10 2009/01/01 17:23:32 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/isn/isn.c,v 1.11 2009/06/11 14:48:51 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/ltree/_ltree_gist.c,v 1.25 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/ltree/_ltree_gist.c,v 1.26 2009/06/11 14:48:51 momjian Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* GiST support for ltree[]
|
* GiST support for ltree[]
|
||||||
@ -559,6 +559,7 @@ _ltree_consistent(PG_FUNCTION_ARGS)
|
|||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
char *query = (char *) DatumGetPointer(PG_DETOAST_DATUM(PG_GETARG_DATUM(1)));
|
char *query = (char *) DatumGetPointer(PG_DETOAST_DATUM(PG_GETARG_DATUM(1)));
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
ltree_gist *key = (ltree_gist *) DatumGetPointer(entry->key);
|
ltree_gist *key = (ltree_gist *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/ltree/_ltree_op.c,v 1.12 2008/05/17 01:28:19 adunstan Exp $
|
* $PostgreSQL: pgsql/contrib/ltree/_ltree_op.c,v 1.13 2009/06/11 14:48:51 momjian Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* op function for ltree[]
|
* op function for ltree[]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* op function for ltree and lquery
|
* op function for ltree and lquery
|
||||||
* Teodor Sigaev <teodor@stack.net>
|
* Teodor Sigaev <teodor@stack.net>
|
||||||
* $PostgreSQL: pgsql/contrib/ltree/lquery_op.c,v 1.13 2008/06/30 18:30:48 teodor Exp $
|
* $PostgreSQL: pgsql/contrib/ltree/lquery_op.c,v 1.14 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $PostgreSQL: pgsql/contrib/ltree/ltree.h,v 1.21 2008/06/30 18:30:48 teodor Exp $ */
|
/* $PostgreSQL: pgsql/contrib/ltree/ltree.h,v 1.22 2009/06/11 14:48:51 momjian Exp $ */
|
||||||
|
|
||||||
#ifndef __LTREE_H__
|
#ifndef __LTREE_H__
|
||||||
#define __LTREE_H__
|
#define __LTREE_H__
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* GiST support for ltree
|
* GiST support for ltree
|
||||||
* Teodor Sigaev <teodor@stack.net>
|
* Teodor Sigaev <teodor@stack.net>
|
||||||
* $PostgreSQL: pgsql/contrib/ltree/ltree_gist.c,v 1.24 2008/05/12 00:00:42 alvherre Exp $
|
* $PostgreSQL: pgsql/contrib/ltree/ltree_gist.c,v 1.25 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -626,6 +626,7 @@ ltree_consistent(PG_FUNCTION_ARGS)
|
|||||||
{
|
{
|
||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2);
|
||||||
|
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
ltree_gist *key = (ltree_gist *) DatumGetPointer(entry->key);
|
ltree_gist *key = (ltree_gist *) DatumGetPointer(entry->key);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* in/out function for ltree and lquery
|
* in/out function for ltree and lquery
|
||||||
* Teodor Sigaev <teodor@stack.net>
|
* Teodor Sigaev <teodor@stack.net>
|
||||||
* $PostgreSQL: pgsql/contrib/ltree/ltree_io.c,v 1.17 2008/06/30 18:30:48 teodor Exp $
|
* $PostgreSQL: pgsql/contrib/ltree/ltree_io.c,v 1.18 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* op function for ltree
|
* op function for ltree
|
||||||
* Teodor Sigaev <teodor@stack.net>
|
* Teodor Sigaev <teodor@stack.net>
|
||||||
* $PostgreSQL: pgsql/contrib/ltree/ltree_op.c,v 1.19 2008/05/12 00:00:43 alvherre Exp $
|
* $PostgreSQL: pgsql/contrib/ltree/ltree_op.c,v 1.20 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
@ -626,9 +626,9 @@ ltreeparentsel(PG_FUNCTION_ARGS)
|
|||||||
else if (hist_size < 100)
|
else if (hist_size < 100)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* For histogram sizes from 10 to 100, we combine the
|
* For histogram sizes from 10 to 100, we combine the histogram
|
||||||
* histogram and default selectivities, putting increasingly
|
* and default selectivities, putting increasingly more trust in
|
||||||
* more trust in the histogram for larger sizes.
|
* the histogram for larger sizes.
|
||||||
*/
|
*/
|
||||||
double hist_weight = hist_size / 100.0;
|
double hist_weight = hist_size / 100.0;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* txtquery io
|
* txtquery io
|
||||||
* Teodor Sigaev <teodor@stack.net>
|
* Teodor Sigaev <teodor@stack.net>
|
||||||
* $PostgreSQL: pgsql/contrib/ltree/ltxtquery_io.c,v 1.16 2008/06/30 18:30:48 teodor Exp $
|
* $PostgreSQL: pgsql/contrib/ltree/ltxtquery_io.c,v 1.17 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* txtquery operations with ltree
|
* txtquery operations with ltree
|
||||||
* Teodor Sigaev <teodor@stack.net>
|
* Teodor Sigaev <teodor@stack.net>
|
||||||
* $PostgreSQL: pgsql/contrib/ltree/ltxtquery_op.c,v 1.9 2008/06/30 18:30:48 teodor Exp $
|
* $PostgreSQL: pgsql/contrib/ltree/ltxtquery_op.c,v 1.10 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Originally by
|
* Originally by
|
||||||
* B. Palmer, bpalmer@crimelabs.net 1-17-2001
|
* B. Palmer, bpalmer@crimelabs.net 1-17-2001
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.35 2009/02/27 09:30:21 petere Exp $
|
* $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.36 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
|
|
||||||
@ -242,6 +242,7 @@ add_one_elt(char *eltname, eary * eary)
|
|||||||
eary ->alloc *= 2;
|
eary ->alloc *= 2;
|
||||||
eary ->array = (char **)
|
eary ->array = (char **)
|
||||||
realloc(eary->array, eary->alloc * sizeof(char *));
|
realloc(eary->array, eary->alloc * sizeof(char *));
|
||||||
|
|
||||||
if (!eary->array)
|
if (!eary->array)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "out of memory");
|
fprintf(stderr, "out of memory");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/pageinspect/btreefuncs.c,v 1.9 2009/03/31 22:54:31 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pageinspect/btreefuncs.c,v 1.10 2009/06/11 14:48:51 momjian Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* btreefuncs.c
|
* btreefuncs.c
|
||||||
@ -191,9 +191,9 @@ bt_page_stats(PG_FUNCTION_ARGS)
|
|||||||
RelationGetRelationName(rel));
|
RelationGetRelationName(rel));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reject attempts to read non-local temporary relations; we would
|
* Reject attempts to read non-local temporary relations; we would be
|
||||||
* be likely to get wrong data since we have no visibility into the
|
* likely to get wrong data since we have no visibility into the owning
|
||||||
* owning session's local buffers.
|
* session's local buffers.
|
||||||
*/
|
*/
|
||||||
if (RELATION_IS_OTHER_TEMP(rel))
|
if (RELATION_IS_OTHER_TEMP(rel))
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
@ -309,8 +309,8 @@ bt_page_items(PG_FUNCTION_ARGS)
|
|||||||
RelationGetRelationName(rel));
|
RelationGetRelationName(rel));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reject attempts to read non-local temporary relations; we would
|
* Reject attempts to read non-local temporary relations; we would be
|
||||||
* be likely to get wrong data since we have no visibility into the
|
* likely to get wrong data since we have no visibility into the
|
||||||
* owning session's local buffers.
|
* owning session's local buffers.
|
||||||
*/
|
*/
|
||||||
if (RELATION_IS_OTHER_TEMP(rel))
|
if (RELATION_IS_OTHER_TEMP(rel))
|
||||||
@ -458,9 +458,9 @@ bt_metap(PG_FUNCTION_ARGS)
|
|||||||
RelationGetRelationName(rel));
|
RelationGetRelationName(rel));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reject attempts to read non-local temporary relations; we would
|
* Reject attempts to read non-local temporary relations; we would be
|
||||||
* be likely to get wrong data since we have no visibility into the
|
* likely to get wrong data since we have no visibility into the owning
|
||||||
* owning session's local buffers.
|
* session's local buffers.
|
||||||
*/
|
*/
|
||||||
if (RELATION_IS_OTHER_TEMP(rel))
|
if (RELATION_IS_OTHER_TEMP(rel))
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* Copyright (c) 2007-2009, PostgreSQL Global Development Group
|
* Copyright (c) 2007-2009, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/contrib/pageinspect/fsmfuncs.c,v 1.2 2009/01/01 17:23:32 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pageinspect/fsmfuncs.c,v 1.3 2009/06/11 14:48:51 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* Copyright (c) 2007-2009, PostgreSQL Global Development Group
|
* Copyright (c) 2007-2009, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/contrib/pageinspect/heapfuncs.c,v 1.6 2009/01/01 17:23:32 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pageinspect/heapfuncs.c,v 1.7 2009/06/11 14:48:51 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
* Copyright (c) 2007-2009, PostgreSQL Global Development Group
|
* Copyright (c) 2007-2009, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/contrib/pageinspect/rawpage.c,v 1.12 2009/06/08 16:22:44 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pageinspect/rawpage.c,v 1.13 2009/06/11 14:48:51 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -121,9 +121,9 @@ get_raw_page_internal(text *relname, ForkNumber forknum, BlockNumber blkno)
|
|||||||
RelationGetRelationName(rel))));
|
RelationGetRelationName(rel))));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reject attempts to read non-local temporary relations; we would
|
* Reject attempts to read non-local temporary relations; we would be
|
||||||
* be likely to get wrong data since we have no visibility into the
|
* likely to get wrong data since we have no visibility into the owning
|
||||||
* owning session's local buffers.
|
* session's local buffers.
|
||||||
*/
|
*/
|
||||||
if (RELATION_IS_OTHER_TEMP(rel))
|
if (RELATION_IS_OTHER_TEMP(rel))
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* pg_buffercache_pages.c
|
* pg_buffercache_pages.c
|
||||||
* display some contents of the buffer cache
|
* display some contents of the buffer cache
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.15 2008/08/14 12:56:41 heikki Exp $
|
* $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.16 2009/06/11 14:48:51 momjian Exp $
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* pg_freespacemap.c
|
* pg_freespacemap.c
|
||||||
* display contents of a free space map
|
* display contents of a free space map
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.c,v 1.13 2009/04/07 17:57:50 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pg_freespacemap/pg_freespacemap.c,v 1.14 2009/06/11 14:48:51 momjian Exp $
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.22 2009/05/14 20:31:09 heikki Exp $
|
* $PostgreSQL: pgsql/contrib/pg_standby/pg_standby.c,v 1.23 2009/06/11 14:48:51 momjian Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* pg_standby.c
|
* pg_standby.c
|
||||||
@ -205,10 +205,10 @@ CustomizableNextWALFileReady()
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Windows 'cp' sets the final file size before the copy is
|
* Windows 'cp' sets the final file size before the copy is
|
||||||
* complete, and not yet ready to be opened by pg_standby.
|
* complete, and not yet ready to be opened by pg_standby. So we
|
||||||
* So we wait for sleeptime secs before attempting to restore.
|
* wait for sleeptime secs before attempting to restore. If that
|
||||||
* If that is not enough, we will rely on the retry/holdoff
|
* is not enough, we will rely on the retry/holdoff mechanism.
|
||||||
* mechanism. GNUWin32's cp does not have this problem.
|
* GNUWin32's cp does not have this problem.
|
||||||
*/
|
*/
|
||||||
pg_usleep(sleeptime * 1000000L);
|
pg_usleep(sleeptime * 1000000L);
|
||||||
#endif
|
#endif
|
||||||
@ -327,10 +327,10 @@ SetWALFileNameForCleanup(void)
|
|||||||
if (restartWALFileName)
|
if (restartWALFileName)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Don't do cleanup if the restartWALFileName provided
|
* Don't do cleanup if the restartWALFileName provided is later than
|
||||||
* is later than the xlog file requested. This is an error
|
* the xlog file requested. This is an error and we must not remove
|
||||||
* and we must not remove these files from archive.
|
* these files from archive. This shouldn't happen, but better safe
|
||||||
* This shouldn't happen, but better safe than sorry.
|
* than sorry.
|
||||||
*/
|
*/
|
||||||
if (strcmp(restartWALFileName, nextWALFileName) > 0)
|
if (strcmp(restartWALFileName, nextWALFileName) > 0)
|
||||||
return false;
|
return false;
|
||||||
@ -397,10 +397,10 @@ CheckForExternalTrigger(void)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* An empty trigger file performs smart failover. There's a little race
|
* An empty trigger file performs smart failover. There's a little race
|
||||||
* condition here: if the writer of the trigger file has just created
|
* condition here: if the writer of the trigger file has just created the
|
||||||
* the file, but not yet written anything to it, we'll treat that as
|
* file, but not yet written anything to it, we'll treat that as smart
|
||||||
* smart shutdown even if the other process was just about to write "fast"
|
* shutdown even if the other process was just about to write "fast" to
|
||||||
* to it. But that's fine: we'll restore one more WAL file, and when we're
|
* it. But that's fine: we'll restore one more WAL file, and when we're
|
||||||
* invoked next time, we'll see the word "fast" and fail over immediately.
|
* invoked next time, we'll see the word "fast" and fail over immediately.
|
||||||
*/
|
*/
|
||||||
if (stat_buf.st_size == 0)
|
if (stat_buf.st_size == 0)
|
||||||
@ -446,8 +446,8 @@ CheckForExternalTrigger(void)
|
|||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Turn it into a "smart" trigger by truncating the file. Otherwise
|
* Turn it into a "smart" trigger by truncating the file. Otherwise if
|
||||||
* if the server asks us again to restore a segment that was restored
|
* the server asks us again to restore a segment that was restored
|
||||||
* restored already, we would return "not found" and upset the server.
|
* restored already, we would return "not found" and upset the server.
|
||||||
*/
|
*/
|
||||||
if (ftruncate(fd, 0) < 0)
|
if (ftruncate(fd, 0) < 0)
|
||||||
@ -577,13 +577,13 @@ main(int argc, char **argv)
|
|||||||
* You can send SIGUSR1 to trigger failover.
|
* You can send SIGUSR1 to trigger failover.
|
||||||
*
|
*
|
||||||
* Postmaster uses SIGQUIT to request immediate shutdown. The default
|
* Postmaster uses SIGQUIT to request immediate shutdown. The default
|
||||||
* action is to core dump, but we don't want that, so trap it and
|
* action is to core dump, but we don't want that, so trap it and commit
|
||||||
* commit suicide without core dump.
|
* suicide without core dump.
|
||||||
*
|
*
|
||||||
* We used to use SIGINT and SIGQUIT to trigger failover, but that
|
* We used to use SIGINT and SIGQUIT to trigger failover, but that turned
|
||||||
* turned out to be a bad idea because postmaster uses SIGQUIT to
|
* out to be a bad idea because postmaster uses SIGQUIT to request
|
||||||
* request immediate shutdown. We still trap SIGINT, but that may
|
* immediate shutdown. We still trap SIGINT, but that may change in a
|
||||||
* change in a future release.
|
* future release.
|
||||||
*/
|
*/
|
||||||
(void) signal(SIGUSR1, sighandler);
|
(void) signal(SIGUSR1, sighandler);
|
||||||
(void) signal(SIGINT, sighandler); /* deprecated, use SIGUSR1 */
|
(void) signal(SIGINT, sighandler); /* deprecated, use SIGUSR1 */
|
||||||
@ -777,9 +777,9 @@ main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Once we have restored this file successfully we can remove some
|
* Once we have restored this file successfully we can remove some
|
||||||
* prior WAL files. If this restore fails we musn't remove any file
|
* prior WAL files. If this restore fails we musn't remove any
|
||||||
* because some of them will be requested again immediately after
|
* file because some of them will be requested again immediately
|
||||||
* the failed restore, or when we restart recovery.
|
* after the failed restore, or when we restart recovery.
|
||||||
*/
|
*/
|
||||||
if (RestoreWALFileForRecovery())
|
if (RestoreWALFileForRecovery())
|
||||||
{
|
{
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* Copyright (c) 2008-2009, PostgreSQL Global Development Group
|
* Copyright (c) 2008-2009, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.2 2009/01/05 13:35:38 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pg_stat_statements/pg_stat_statements.c,v 1.3 2009/06/11 14:48:51 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -107,11 +107,13 @@ typedef struct pgssSharedState
|
|||||||
|
|
||||||
/* Current nesting depth of ExecutorRun calls */
|
/* Current nesting depth of ExecutorRun calls */
|
||||||
static int nested_level = 0;
|
static int nested_level = 0;
|
||||||
|
|
||||||
/* Saved hook values in case of unload */
|
/* Saved hook values in case of unload */
|
||||||
static shmem_startup_hook_type prev_shmem_startup_hook = NULL;
|
static shmem_startup_hook_type prev_shmem_startup_hook = NULL;
|
||||||
static ExecutorStart_hook_type prev_ExecutorStart = NULL;
|
static ExecutorStart_hook_type prev_ExecutorStart = NULL;
|
||||||
static ExecutorRun_hook_type prev_ExecutorRun = NULL;
|
static ExecutorRun_hook_type prev_ExecutorRun = NULL;
|
||||||
static ExecutorEnd_hook_type prev_ExecutorEnd = NULL;
|
static ExecutorEnd_hook_type prev_ExecutorEnd = NULL;
|
||||||
|
|
||||||
/* Links to shared memory state */
|
/* Links to shared memory state */
|
||||||
static pgssSharedState *pgss = NULL;
|
static pgssSharedState *pgss = NULL;
|
||||||
static HTAB *pgss_hash = NULL;
|
static HTAB *pgss_hash = NULL;
|
||||||
@ -177,11 +179,11 @@ _PG_init(void)
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* In order to create our shared memory area, we have to be loaded via
|
* In order to create our shared memory area, we have to be loaded via
|
||||||
* shared_preload_libraries. If not, fall out without hooking into
|
* shared_preload_libraries. If not, fall out without hooking into any of
|
||||||
* any of the main system. (We don't throw error here because it seems
|
* the main system. (We don't throw error here because it seems useful to
|
||||||
* useful to allow the pg_stat_statements functions to be created even
|
* allow the pg_stat_statements functions to be created even when the
|
||||||
* when the module isn't active. The functions must protect themselves
|
* module isn't active. The functions must protect themselves against
|
||||||
* against being called then, however.)
|
* being called then, however.)
|
||||||
*/
|
*/
|
||||||
if (!process_shared_preload_libraries_in_progress)
|
if (!process_shared_preload_libraries_in_progress)
|
||||||
return;
|
return;
|
||||||
@ -318,8 +320,8 @@ pgss_shmem_startup(void)
|
|||||||
LWLockRelease(AddinShmemInitLock);
|
LWLockRelease(AddinShmemInitLock);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we're in the postmaster (or a standalone backend...), set up a
|
* If we're in the postmaster (or a standalone backend...), set up a shmem
|
||||||
* shmem exit hook to dump the statistics to disk.
|
* exit hook to dump the statistics to disk.
|
||||||
*/
|
*/
|
||||||
if (!IsUnderPostmaster)
|
if (!IsUnderPostmaster)
|
||||||
on_shmem_exit(pgss_shmem_shutdown, (Datum) 0);
|
on_shmem_exit(pgss_shmem_shutdown, (Datum) 0);
|
||||||
@ -327,8 +329,8 @@ pgss_shmem_startup(void)
|
|||||||
/*
|
/*
|
||||||
* Attempt to load old statistics from the dump file.
|
* Attempt to load old statistics from the dump file.
|
||||||
*
|
*
|
||||||
* Note: we don't bother with locks here, because there should be no
|
* Note: we don't bother with locks here, because there should be no other
|
||||||
* other processes running when this is called.
|
* processes running when this is called.
|
||||||
*/
|
*/
|
||||||
if (!pgss_save)
|
if (!pgss_save)
|
||||||
return;
|
return;
|
||||||
@ -482,9 +484,9 @@ pgss_ExecutorStart(QueryDesc *queryDesc, int eflags)
|
|||||||
if (pgss_enabled())
|
if (pgss_enabled())
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Set up to track total elapsed time in ExecutorRun. Make sure
|
* Set up to track total elapsed time in ExecutorRun. Make sure the
|
||||||
* the space is allocated in the per-query context so it will go
|
* space is allocated in the per-query context so it will go away at
|
||||||
* away at ExecutorEnd.
|
* ExecutorEnd.
|
||||||
*/
|
*/
|
||||||
if (queryDesc->totaltime == NULL)
|
if (queryDesc->totaltime == NULL)
|
||||||
{
|
{
|
||||||
@ -529,8 +531,8 @@ pgss_ExecutorEnd(QueryDesc *queryDesc)
|
|||||||
if (queryDesc->totaltime && pgss_enabled())
|
if (queryDesc->totaltime && pgss_enabled())
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Make sure stats accumulation is done. (Note: it's okay if
|
* Make sure stats accumulation is done. (Note: it's okay if several
|
||||||
* several levels of hook all do this.)
|
* levels of hook all do this.)
|
||||||
*/
|
*/
|
||||||
InstrEndLoop(queryDesc->totaltime);
|
InstrEndLoop(queryDesc->totaltime);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/pg_trgm/trgm.h,v 1.10 2008/11/12 13:43:54 teodor Exp $
|
* $PostgreSQL: pgsql/contrib/pg_trgm/trgm.h,v 1.11 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#ifndef __TRGM_H__
|
#ifndef __TRGM_H__
|
||||||
#define __TRGM_H__
|
#define __TRGM_H__
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/pg_trgm/trgm_gin.c,v 1.7 2009/03/25 22:19:01 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pg_trgm/trgm_gin.c,v 1.8 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "trgm.h"
|
#include "trgm.h"
|
||||||
|
|
||||||
@ -67,6 +67,7 @@ Datum
|
|||||||
gin_trgm_consistent(PG_FUNCTION_ARGS)
|
gin_trgm_consistent(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
bool *check = (bool *) PG_GETARG_POINTER(0);
|
bool *check = (bool *) PG_GETARG_POINTER(0);
|
||||||
|
|
||||||
/* StrategyNumber strategy = PG_GETARG_UINT16(1); */
|
/* StrategyNumber strategy = PG_GETARG_UINT16(1); */
|
||||||
/* text *query = PG_GETARG_TEXT_P(2); */
|
/* text *query = PG_GETARG_TEXT_P(2); */
|
||||||
/* int32 nkeys = PG_GETARG_INT32(3); */
|
/* int32 nkeys = PG_GETARG_INT32(3); */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/pg_trgm/trgm_gist.c,v 1.15 2008/07/11 11:56:48 teodor Exp $
|
* $PostgreSQL: pgsql/contrib/pg_trgm/trgm_gist.c,v 1.16 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "trgm.h"
|
#include "trgm.h"
|
||||||
|
|
||||||
@ -164,6 +164,7 @@ gtrgm_consistent(PG_FUNCTION_ARGS)
|
|||||||
{
|
{
|
||||||
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
GISTENTRY *entry = (GISTENTRY *) PG_GETARG_POINTER(0);
|
||||||
text *query = PG_GETARG_TEXT_P(1);
|
text *query = PG_GETARG_TEXT_P(1);
|
||||||
|
|
||||||
/* StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2); */
|
/* StrategyNumber strategy = (StrategyNumber) PG_GETARG_UINT16(2); */
|
||||||
/* Oid subtype = PG_GETARG_OID(3); */
|
/* Oid subtype = PG_GETARG_OID(3); */
|
||||||
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
bool *recheck = (bool *) PG_GETARG_POINTER(4);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/pg_trgm/trgm_op.c,v 1.11 2008/11/12 13:43:54 teodor Exp $
|
* $PostgreSQL: pgsql/contrib/pg_trgm/trgm_op.c,v 1.12 2009/06/11 14:48:51 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "trgm.h"
|
#include "trgm.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@ -107,8 +107,7 @@ cnt_trigram(trgm *tptr, char *str, int bytelen)
|
|||||||
FIN_CRC32(crc);
|
FIN_CRC32(crc);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* use only 3 upper bytes from crc, hope, it's
|
* use only 3 upper bytes from crc, hope, it's good enough hashing
|
||||||
* good enough hashing
|
|
||||||
*/
|
*/
|
||||||
CPTRGM(tptr, &crc);
|
CPTRGM(tptr, &crc);
|
||||||
}
|
}
|
||||||
@ -170,7 +169,8 @@ generate_trgm(char *str, int slen)
|
|||||||
int len,
|
int len,
|
||||||
charlen,
|
charlen,
|
||||||
bytelen;
|
bytelen;
|
||||||
char *bword, *eword;
|
char *bword,
|
||||||
|
*eword;
|
||||||
|
|
||||||
trg = (TRGM *) palloc(TRGMHDRSIZE + sizeof(trgm) * (slen / 2 + 1) *3);
|
trg = (TRGM *) palloc(TRGMHDRSIZE + sizeof(trgm) * (slen / 2 + 1) *3);
|
||||||
trg->flag = ARRKEY;
|
trg->flag = ARRKEY;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* A simple benchmark program for PostgreSQL
|
* A simple benchmark program for PostgreSQL
|
||||||
* Originally written by Tatsuo Ishii and enhanced by many contributors.
|
* Originally written by Tatsuo Ishii and enhanced by many contributors.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.86 2009/05/07 22:01:18 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.87 2009/06/11 14:48:51 momjian Exp $
|
||||||
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
|
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
|
||||||
* ALL RIGHTS RESERVED;
|
* ALL RIGHTS RESERVED;
|
||||||
*
|
*
|
||||||
@ -225,6 +225,7 @@ addTime(struct timeval *t1, struct timeval *t2, struct timeval *result)
|
|||||||
{
|
{
|
||||||
int sec = t1->tv_sec + t2->tv_sec;
|
int sec = t1->tv_sec + t2->tv_sec;
|
||||||
int usec = t1->tv_usec + t2->tv_usec;
|
int usec = t1->tv_usec + t2->tv_usec;
|
||||||
|
|
||||||
if (usec >= 1000000)
|
if (usec >= 1000000)
|
||||||
{
|
{
|
||||||
usec -= 1000000;
|
usec -= 1000000;
|
||||||
@ -240,6 +241,7 @@ diffTime(struct timeval *t1, struct timeval *t2, struct timeval *result)
|
|||||||
{
|
{
|
||||||
int sec = t1->tv_sec - t2->tv_sec;
|
int sec = t1->tv_sec - t2->tv_sec;
|
||||||
int usec = t1->tv_usec - t2->tv_usec;
|
int usec = t1->tv_usec - t2->tv_usec;
|
||||||
|
|
||||||
if (usec < 0)
|
if (usec < 0)
|
||||||
{
|
{
|
||||||
usec += 1000000;
|
usec += 1000000;
|
||||||
@ -555,7 +557,10 @@ assignVariables(CState * st, char *sql)
|
|||||||
name = parseVariable(p, &eaten);
|
name = parseVariable(p, &eaten);
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
{
|
{
|
||||||
while (*p == ':') { p++; }
|
while (*p == ':')
|
||||||
|
{
|
||||||
|
p++;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -694,7 +699,9 @@ top:
|
|||||||
|
|
||||||
if (st->con == NULL)
|
if (st->con == NULL)
|
||||||
{
|
{
|
||||||
struct timeval t1, t2, t3;
|
struct timeval t1,
|
||||||
|
t2,
|
||||||
|
t3;
|
||||||
|
|
||||||
gettimeofday(&t1, NULL);
|
gettimeofday(&t1, NULL);
|
||||||
if ((st->con = doConnect()) == NULL)
|
if ((st->con = doConnect()) == NULL)
|
||||||
@ -1002,12 +1009,11 @@ init(void)
|
|||||||
/*
|
/*
|
||||||
* Note: TPC-B requires at least 100 bytes per row, and the "filler"
|
* Note: TPC-B requires at least 100 bytes per row, and the "filler"
|
||||||
* fields in these table declarations were intended to comply with that.
|
* fields in these table declarations were intended to comply with that.
|
||||||
* But because they default to NULLs, they don't actually take any
|
* But because they default to NULLs, they don't actually take any space.
|
||||||
* space. We could fix that by giving them non-null default values.
|
* We could fix that by giving them non-null default values. However, that
|
||||||
* However, that would completely break comparability of pgbench
|
* would completely break comparability of pgbench results with prior
|
||||||
* results with prior versions. Since pgbench has never pretended
|
* versions. Since pgbench has never pretended to be fully TPC-B
|
||||||
* to be fully TPC-B compliant anyway, we stick with the historical
|
* compliant anyway, we stick with the historical behavior.
|
||||||
* behavior.
|
|
||||||
*/
|
*/
|
||||||
static char *DDLs[] = {
|
static char *DDLs[] = {
|
||||||
"drop table if exists pgbench_branches",
|
"drop table if exists pgbench_branches",
|
||||||
@ -1153,7 +1159,10 @@ parseQuery(Command *cmd, const char *raw_sql)
|
|||||||
name = parseVariable(p, &eaten);
|
name = parseVariable(p, &eaten);
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
{
|
{
|
||||||
while (*p == ':') { p++; }
|
while (*p == ':')
|
||||||
|
{
|
||||||
|
p++;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1879,7 +1888,8 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
if (is_connect == 0)
|
if (is_connect == 0)
|
||||||
{
|
{
|
||||||
struct timeval t, now;
|
struct timeval t,
|
||||||
|
now;
|
||||||
|
|
||||||
/* make connections to the database */
|
/* make connections to the database */
|
||||||
for (i = 0; i < nclients; i++)
|
for (i = 0; i < nclients; i++)
|
||||||
@ -1973,6 +1983,7 @@ main(int argc, char **argv)
|
|||||||
min_usec = this_usec;
|
min_usec = this_usec;
|
||||||
|
|
||||||
FD_SET (sock, &input_mask);
|
FD_SET (sock, &input_mask);
|
||||||
|
|
||||||
if (maxsock < sock)
|
if (maxsock < sock)
|
||||||
maxsock = sock;
|
maxsock = sock;
|
||||||
}
|
}
|
||||||
@ -1986,6 +1997,7 @@ main(int argc, char **argv)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
FD_SET (sock, &input_mask);
|
FD_SET (sock, &input_mask);
|
||||||
|
|
||||||
if (maxsock < sock)
|
if (maxsock < sock)
|
||||||
maxsock = sock;
|
maxsock = sock;
|
||||||
}
|
}
|
||||||
@ -2069,7 +2081,6 @@ setalarm(int seconds)
|
|||||||
pqsignal(SIGALRM, handle_sig_alarm);
|
pqsignal(SIGALRM, handle_sig_alarm);
|
||||||
alarm(seconds);
|
alarm(seconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* WIN32 */
|
#else /* WIN32 */
|
||||||
|
|
||||||
static VOID CALLBACK
|
static VOID CALLBACK
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Butchered version of sshblowf.c from putty-0.59.
|
* Butchered version of sshblowf.c from putty-0.59.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/blf.c,v 1.9 2007/11/15 21:14:31 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/blf.c,v 1.10 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $PostgreSQL: pgsql/contrib/pgcrypto/blf.h,v 1.7 2007/11/15 21:14:31 momjian Exp $ */
|
/* $PostgreSQL: pgsql/contrib/pgcrypto/blf.h,v 1.8 2009/06/11 14:48:52 momjian Exp $ */
|
||||||
/*
|
/*
|
||||||
* PuTTY is copyright 1997-2007 Simon Tatham.
|
* PuTTY is copyright 1997-2007 Simon Tatham.
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/crypt-blowfish.c,v 1.13 2007/11/15 21:14:31 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/crypt-blowfish.c,v 1.14 2009/06/11 14:48:52 momjian Exp $
|
||||||
*
|
*
|
||||||
* This code comes from John the Ripper password cracker, with reentrant
|
* This code comes from John the Ripper password cracker, with reentrant
|
||||||
* and crypt(3) interfaces added, but optimizations specific to password
|
* and crypt(3) interfaces added, but optimizations specific to password
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Written by Solar Designer and placed in the public domain.
|
* Written by Solar Designer and placed in the public domain.
|
||||||
* See crypt_blowfish.c for more information.
|
* See crypt_blowfish.c for more information.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/crypt-gensalt.c,v 1.10 2006/10/04 00:29:46 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/crypt-gensalt.c,v 1.11 2009/06/11 14:48:52 momjian Exp $
|
||||||
*
|
*
|
||||||
* This file contains salt generation functions for the traditional and
|
* This file contains salt generation functions for the traditional and
|
||||||
* other common crypt(3) algorithms, except for bcrypt which is defined
|
* other common crypt(3) algorithms, except for bcrypt which is defined
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/fortuna.c,v 1.8 2006/10/04 00:29:46 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/fortuna.c,v 1.9 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
*/
|
*/
|
||||||
/* $PostgreSQL: pgsql/contrib/pgcrypto/imath.c,v 1.7 2007/07/15 22:43:40 tgl Exp $ */
|
/* $PostgreSQL: pgsql/contrib/pgcrypto/imath.c,v 1.8 2009/06/11 14:48:52 momjian Exp $ */
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
#include "px.h"
|
#include "px.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
*/
|
*/
|
||||||
/* $PostgreSQL: pgsql/contrib/pgcrypto/imath.h,v 1.6 2007/11/15 21:14:31 momjian Exp $ */
|
/* $PostgreSQL: pgsql/contrib/pgcrypto/imath.h,v 1.7 2009/06/11 14:48:52 momjian Exp $ */
|
||||||
|
|
||||||
#ifndef IMATH_H_
|
#ifndef IMATH_H_
|
||||||
#define IMATH_H_
|
#define IMATH_H_
|
||||||
@ -60,7 +60,8 @@ typedef struct mpz
|
|||||||
mp_size alloc;
|
mp_size alloc;
|
||||||
mp_size used;
|
mp_size used;
|
||||||
mp_sign sign;
|
mp_sign sign;
|
||||||
} mpz_t, *mp_int;
|
} mpz_t ,
|
||||||
|
*mp_int;
|
||||||
|
|
||||||
#define MP_DIGITS(Z) ((Z)->digits)
|
#define MP_DIGITS(Z) ((Z)->digits)
|
||||||
#define MP_ALLOC(Z) ((Z)->alloc)
|
#define MP_ALLOC(Z) ((Z)->alloc)
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/internal-sha2.c,v 1.2 2006/10/04 00:29:46 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/internal-sha2.c,v 1.3 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/internal.c,v 1.28 2008/02/17 02:09:26 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/internal.c,v 1.29 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/mbuf.c,v 1.4 2007/07/15 23:57:13 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/mbuf.c,v 1.5 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/mbuf.h,v 1.2 2005/10/15 02:49:06 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/mbuf.h,v 1.3 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PX_MBUF_H
|
#ifndef __PX_MBUF_H
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/md5.c,v 1.14 2007/04/06 05:36:50 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/md5.c,v 1.15 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $PostgreSQL: pgsql/contrib/pgcrypto/md5.h,v 1.9 2005/10/15 02:49:06 momjian Exp $ */
|
/* $PostgreSQL: pgsql/contrib/pgcrypto/md5.h,v 1.10 2009/06/11 14:48:52 momjian Exp $ */
|
||||||
/* $KAME: md5.h,v 1.3 2000/02/22 14:01:18 itojun Exp $ */
|
/* $KAME: md5.h,v 1.3 2000/02/22 14:01:18 itojun Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/openssl.c,v 1.32 2007/11/15 21:14:31 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/openssl.c,v 1.33 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-cfb.c,v 1.3 2005/10/15 02:49:06 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-cfb.c,v 1.4 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-compress.c,v 1.7 2007/11/15 21:14:31 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-compress.c,v 1.8 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-decrypt.c,v 1.7 2005/11/22 18:17:04 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-decrypt.c,v 1.8 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-encrypt.c,v 1.3 2005/10/15 02:49:06 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-encrypt.c,v 1.4 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-info.c,v 1.4 2005/10/15 02:49:06 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-info.c,v 1.5 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-mpi-internal.c,v 1.7 2006/10/04 00:29:46 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-mpi-internal.c,v 1.8 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-mpi-openssl.c,v 1.4 2005/10/15 02:49:06 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-mpi-openssl.c,v 1.5 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-mpi.c,v 1.4 2005/10/15 02:49:06 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-mpi.c,v 1.5 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-pgsql.c,v 1.10 2008/05/04 16:42:41 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-pgsql.c,v 1.11 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-pubdec.c,v 1.5 2005/10/15 02:49:06 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-pubdec.c,v 1.6 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-pubenc.c,v 1.4 2005/10/15 02:49:06 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-pubenc.c,v 1.5 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-pubkey.c,v 1.4 2005/10/15 02:49:06 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-pubkey.c,v 1.5 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-s2k.c,v 1.4 2005/10/15 02:49:06 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp-s2k.c,v 1.5 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp.c,v 1.3 2005/10/15 02:49:06 momjian Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp.c,v 1.4 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "postgres.h"
|
#include "postgres.h"
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp.h,v 1.5 2009/03/25 15:03:13 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pgcrypto/pgp.h,v 1.6 2009/06/11 14:48:52 momjian Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum PGP_S2K_TYPE
|
enum PGP_S2K_TYPE
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user