How to make a map in pg kernel?

2023-10-05 Thread jacktby jacktby
Hi, I’m writing some kernel codes in pg15, and now I need to make a map struct, 
I know c-lang doesn’t support this, so does pg support an internal struct? 
Hopefully your replies.



Re: ./configure doesn't make effect?

2023-09-05 Thread jacktby jacktby
Sorry, I make a mistake, I should make install. That’s my fault

> 2023年9月5日 20:08,Jeremy Garniaux  写道:
> 
> Hi, 
> 
> The command you described:
> 
> Le 05/09/2023 à 13:41, jacktby jacktby a écrit :
>> rm -rf /data
> has for effect to remove the /data directory and all its content. See: 
> https://explainshell.com/explain?cmd=rm+-rf+%2Fdata 
> 
> It explains why you don't get the /data content.
> 
> Jeremy
> 
> Jeremy Garniaux
> https://mapper.fr <https://mapper.fr/>


./configure doesn't make effect?

2023-09-05 Thread jacktby jacktby
I use “rm -rf /data”, the ‘/data’ is the prefix when I execute ./configure 
command firstly, but after I ‘rm’ it, and use the command again, I can’t get 
the /data content. Why?



Failed to parse new syntax

2023-08-05 Thread jacktby jacktby
/*
*   similarity_search_expr is used for our multi-mode 
*   similarity_search, and we just use this for multi
*   cols search.
*/
similarity_search_expr: 
sub_search_expr '<' AexprConst {
$$ = (Node *) makeSimpleA_Expr(AEXPR_OP, "<", $1, $3, @2);
}
;
sub_search_expr:
'[' col_tuple_expr '~' AexprConst ']' {
$$ = (Node *) makeSimpleA_Expr(AEXPR_OP, "~", $2, $4, @3);
}
;
col_tuple_expr:
columnref { $$ = $1;}
| '(' col_list_expr ')' { $$ = $2;}
;
col_list_expr:
columnref {
ResTarget* target = makeNode(ResTarget);
target->name = NULL;
target->indirection = NIL;
target->val = (Node *) $1;
target->location = @1;
$$ = list_make1(target);
}
| col_list_expr ',' columnref { $$ = lappend($1,$3);}
;
This is my new grammer.
But I get  below:
   postgres=# select * from t2 where [a ~ 1] < 0;
   ERROR:  syntax error at or near "~"
 LINE 1: select * from t2 where [a ~ 1] < 0;
It’s strange that it can’t parse ‘~’, I add it in the parser.



How does pg parse 'select '(1,2)''

2023-08-05 Thread jacktby jacktby
I’m trying to add new grammar for my application. So I’m do research on gram.y.
I think it will make the '(1,2)' as " '(' a_expr ')' "; but I can’t find out 
something like
" a_expr ',' a_expr “, can you give me the details?



How to build a new grammer for pg?

2023-08-01 Thread jacktby






Hi, I’m trying to develop a new grammar for pg, can you give me a code example to reference?





















Re: could not find shared library for Python

2022-10-23 Thread jacktby






ok, I'm sorry for that





Re: could not find shared library for Python

2022-10-17 Thread jacktby

















 


jacktbyjack...@gmail.com


 

  
 Replied Message 
  
  

  

 From 


Adrian Klaver


  
  

 Date 


10/17/2022 22:54

  
  

 To 


 
  
jacktby
,
  
  
pgsql-general@lists.postgresql.org

  

  
  

 Subject 


  Re: could not find shared library for Python

  

  
  On 10/17/22 07:07, jacktby wrote:   I use CentOS7 and upgrade python2.7 to python3.7, but it gives me anHow did you upgrade from Python 2.7 to 3.7?If you run python at the command line do you get the Python 3.7 interpreter? error "could not find shared library for Python",I use the newest code from github repo, how should I do?  	 jacktby jack...@gmail.com  -- Adrian Klaveradrian.kla...@aklaver.com






could not find shared library for Python

2022-10-17 Thread jacktby















I use CentOS7 and upgrade python2.7 to python3.7, but it gives me an error "could not find shared library for Python",I use the newest code from github repo, how should I do?

 


jacktbyjack...@gmail.com


 





Zheap Tech Problem

2022-10-14 Thread jacktby








What's Zheap tech? Can you give me some details or stuff to study? and which version will be realized in ?








 


jacktbyjack...@gmail.com


 





Please explain what's c99 brain dead?

2022-10-03 Thread jacktby jacktby
 can you give me a link to study it?








what is brain-dead about C99 inline functions?

2022-10-02 Thread jacktby jacktby


C99's brain-dead

2022-10-02 Thread jacktby jacktby
[image: 1664711612742.png]
can you explain this please?