mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-09 08:10:09 +08:00
553bc41633
2 remove select qeury in inserts
27 lines
437 B
C
27 lines
437 B
C
#ifndef __SNMAP_H__
|
|
#define __SNMAP_H__
|
|
|
|
#include "postgres.h"
|
|
|
|
typedef struct
|
|
{
|
|
char *key;
|
|
Oid value;
|
|
Oid nsp;
|
|
} SNMapEntry;
|
|
|
|
typedef struct
|
|
{
|
|
int len;
|
|
int reallen;
|
|
SNMapEntry *list;
|
|
} SNMap;
|
|
|
|
void addSNMap(SNMap * map, char *key, Oid value);
|
|
void addSNMap_t(SNMap * map, text *key, Oid value);
|
|
Oid findSNMap(SNMap * map, char *key);
|
|
Oid findSNMap_t(SNMap * map, text *key);
|
|
void freeSNMap(SNMap * map);
|
|
|
|
#endif
|