[HACKERS] about hacking postgresql

2009-04-05 Thread abdelhak benmohamed
hello, 
here more of details
I have a set of transaction.  Naturally, the transactions execute themselves in 
competition.  But I would want to give to every transaction a priority. Thus 
the transaction more priority must execute itself in first.  
 
I thought, as first step, to change the transaction syntax as follows 
Start transaction (priority) 
 
But I do not know where to do exactly the change in gram.y 
for I have to try to change in TransactionStmt, but I always receive the 
message syntax error at now near (
 
thanks you a lot
 


  

Re: [HACKERS] about hacking postgresql

2009-04-05 Thread Hans-Juergen Schoenig

abdelhak benmohamed wrote:


hello,

here more of details

I have a set of transaction.  Naturally, the transactions execute 
themselves in competition.  But I would want to give to every 
transaction a priority. Thus the transaction more priority must 
execute itself in first. 

 


I thought, as first step, to change the transaction syntax as follows

Start transaction (priority)

 


But I do not know where to do exactly the change in gram.y

for I have to try to change in TransactionStmt, but I always receive 
the message syntax error at now near (


 


thanks you a lot

 





hello ...

if you pump then in through the same database connection you do 
basically the same thing.
if you want transactions to lock out each other, take a look at advisory 
locks.
implementing this for start transaction seems pretty useless to me 
however.


   best regards,

  hans

--
Cybertec Schönig  Schönig GmbH
Professional PostgreSQL Consulting, Support, Training
Gröhrmühlgasse 26, A-2700 Wiener Neustadt
Web: www.postgresql-support.de


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


[HACKERS] About hacking postgresql

2009-04-05 Thread abdelhak benmohamed
Hellow, 
 
I want to be more precis
I want to change the syntax as follows
Start Transaction (priority)
 
I have 03 transactions
I want to give to every transaction à priority
 
Example
Transaction 1
Start transaction (03) 
.
Commit
 
Transaction 2
Start transaction (04) 
………
Commit
 
Transaction 1
Start transaction (01) 
..
Commit
 
(the transaction with the higth priority must execute first)
 
How to express this in gram.y? Is change in gram.y sufficient?
 
Thanks a lot


  

[HACKERS] about hacking postgresql

2009-04-05 Thread abdelhak benmohamed
Hellow, 
  
I want to be more precis 
I want to change the syntax as follows 
Start Transaction (priority) 
  
I have 03 transactions 
I want to give to every transaction à priority 
  
Example 
Transaction 1 
Start transaction (03) 
. 
Commit 
  
Transaction 2 
Start transaction (04) 
……… 
Commit 
  
Transaction 1 
Start transaction (01) 
.. 
Commit 
  
(the transaction with the higth priority must execute first) 
  
How to express this in gram.y? Is change in gram.y sufficient? 
  
Thanks a lot


  

[HACKERS] about hacking postgresql

2009-04-02 Thread abdelhak benmohamed
Hello, 
  
I am learning how to hack PostgreSQL, but it is still so difficult in fact, I 
am a novice! 
  
I am trying to change syntax of postgresql (for my project). I access to 
gram.y, I add the changes but I still receive message error (syntax error at 
near …). 
  
Is that only change to do or are their other steps to accomplish? 
  
I need your help 
  
It is very important for me to have your advices, help. 
  
Thanks very much. Friendly 


  

Re: [HACKERS] about hacking postgresql

2009-04-02 Thread Robert Haas
On Thu, Apr 2, 2009 at 10:44 AM, abdelhak benmohamed
abdelhak.benmoha...@yahoo.fr wrote:
 I am trying to change syntax of postgresql (for my project). I access to
 gram.y, I add the changes but I still receive message error (syntax error at
 near …).

 Is that only change to do or are their other steps to accomplish?

You're evidently doing something wrong, but since you've provided no
information about what you did or what didn't work, I can't even begin
to speculate as to what it is.

...Robert

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Re: [HACKERS] about hacking postgresql

2009-04-02 Thread Mokhtari Amine

Hi,

I don't know exactly what you want to do but you can begin by looking 
here http://neilconway.org/talks/hacking/ (in particular Handout with 
excerpts from patch).


can you tell us more  ?

Amine

abdelhak benmohamed a écrit :


Hello,

 

I am learning how to hack PostgreSQL, but it is still so difficult in 
fact, I am a novice!


 

I am trying to change syntax of postgresql (for my project). I access 
to gram.y, I add the changes but I still receive message error (syntax 
error at near …).


 


Is that only change to do or are their other steps to accomplish?

 


I need your help

 


It is very important for me to have your advices, help.

 


Thanks very much. Friendly