Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb527131

Browse files
committed
First working pthread version
1 parent801386a commitb527131

File tree

341 files changed

+3051
-3080
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

341 files changed

+3051
-3080
lines changed

‎contrib/hstore/hstore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ extern Pairs *hstoreArrayToPairs(ArrayType *a, int *npairs);
196196
PG_FUNCTION_INFO_V1(oldname_); \
197197
Datum newname_(PG_FUNCTION_ARGS); \
198198
Datum oldname_(PG_FUNCTION_ARGS) { return newname_(fcinfo); } \
199-
extern int no_such_variable
199+
externsession_localint no_such_variable
200200
#else
201201
#defineHSTORE_POLLUTE(newname_,oldname_) \
202-
extern int no_such_variable
202+
externsession_localint no_such_variable
203203
#endif
204204

205205
#endif/* __HSTORE_H__ */

‎contrib/pg_trgm/trgm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ typedef char *BITVECP;
118118

119119
typedefstructTrgmPackedGraphTrgmPackedGraph;
120120

121-
externdoublesimilarity_threshold;
122-
externdoubleword_similarity_threshold;
121+
externsession_localdoublesimilarity_threshold;
122+
externsession_localdoubleword_similarity_threshold;
123123

124124
externuint32trgm2int(trgm*ptr);
125125
externvoidcompact_trigram(trgm*tptr,char*str,intbytelen);

‎contrib/pgcrypto/crypt-des.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ px_crypt_des(const char *key, const char *setting)
659659
keybuf[2];
660660
char*p;
661661
uint8*q;
662-
staticcharoutput[21];
662+
staticsession_localcharoutput[21];
663663

664664
if (!des_initialised)
665665
des_init();

‎contrib/pgcrypto/crypt-md5.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ px_crypt_md5(const char *pw, const char *salt, char *passwd, unsigned dstlen)
3636
staticchar*magic="$1$";/* This string is magic for this algorithm.
3737
* Having it this way, we can get better later
3838
* on */
39-
staticchar*p;
40-
staticconstchar*sp,
39+
staticsession_localchar*p;
40+
staticsession_localconstchar*sp,
4141
*ep;
4242
unsignedcharfinal[MD5_SIZE];
4343
intsl,

‎contrib/pgcrypto/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ bf_init(PX_Cipher *c, const uint8 *key, unsigned klen, const uint8 *iv)
460460
{
461461
OSSLCipher*od=c->ptr;
462462
unsignedbs=gen_ossl_block_size(c);
463-
staticintbf_is_strong=-1;
463+
staticsession_localintbf_is_strong=-1;
464464

465465
/*
466466
* Test if key len is supported. BF_set_key silently cut large keys and it

‎contrib/pgcrypto/pgp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,4 @@ int pgp_elgamal_decrypt(PGP_PubKey *pk, PGP_MPI *c1, PGP_MPI *c2,
324324
intpgp_rsa_encrypt(PGP_PubKey*pk,PGP_MPI*m,PGP_MPI**c);
325325
intpgp_rsa_decrypt(PGP_PubKey*pk,PGP_MPI*c,PGP_MPI**m);
326326

327-
externstructPullFilterOpspgp_decrypt_filter;
327+
externsession_localstructPullFilterOpspgp_decrypt_filter;

‎contrib/uuid-ossp/uuid-ossp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pguuid_complain(uuid_rc_t rc)
160160
staticuuid_t*
161161
get_cached_uuid_t(intwhich)
162162
{
163-
staticuuid_t*cached_uuid[2]= {NULL,NULL};
163+
staticsession_localuuid_t*cached_uuid[2]= {NULL,NULL};
164164

165165
if (cached_uuid[which]==NULL)
166166
{

‎contrib/vacuumlo/vacuumlo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ vacuumlo(const char *database, const struct _param *param)
6767
inti;
6868
boolnew_pass;
6969
boolsuccess= true;
70-
staticboolhave_password= false;
71-
staticcharpassword[100];
70+
staticsession_localboolhave_password= false;
71+
staticsession_localcharpassword[100];
7272

7373
/* Note: password can be carried over from a previous call */
7474
if (param->pg_prompt==TRI_YES&& !have_password)

‎src/backend/access/common/reloptions.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,12 @@ static relopt_string stringRelOpts[] =
434434
{{NULL}}
435435
};
436436

437-
staticrelopt_gen**relOpts=NULL;
438-
staticbits32last_assigned_kind=RELOPT_KIND_LAST_DEFAULT;
437+
staticsession_localrelopt_gen**relOpts=NULL;
438+
staticsession_localbits32last_assigned_kind=RELOPT_KIND_LAST_DEFAULT;
439439

440-
staticintnum_custom_options=0;
441-
staticrelopt_gen**custom_options=NULL;
442-
staticboolneed_initialization= true;
440+
staticsession_localintnum_custom_options=0;
441+
staticsession_localrelopt_gen**custom_options=NULL;
442+
staticsession_localboolneed_initialization= true;
443443

444444
staticvoidinitialize_reloptions(void);
445445
staticvoidparse_one_reloption(relopt_value*option,char*text_str,
@@ -560,7 +560,7 @@ add_reloption_kind(void)
560560
staticvoid
561561
add_reloption(relopt_gen*newoption)
562562
{
563-
staticintmax_custom_options=0;
563+
staticsession_localintmax_custom_options=0;
564564

565565
if (num_custom_options >=max_custom_options)
566566
{

‎src/backend/access/common/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#defineSESSION_KEY_RECORD_TYPMOD_REGISTRYUINT64CONST(0xFFFFFFFFFFFF0002)
4646

4747
/* This backend's current session. */
48-
Session*CurrentSession=NULL;
48+
session_localSession*CurrentSession=NULL;
4949

5050
/*
5151
* Set up CurrentSession to point to an empty Session object.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp