Re: [HACKERS] Get Date value from Datum

2008-11-03 Thread imad
What do you want to print? The integer value or the date string like "29-01-2008". Use the date_out function to convert your value to date. --Imad On Tue, Nov 4, 2008 at 10:19 AM, Zhe He <[EMAIL PROTECTED]> wrote: > Hi, > I met some problem with get date type value > fro

Re: [HACKERS] Data type OID numbers fixed?

2008-07-07 Thread imad
I'd include catalog/pg_type.h and use the #DEFINE for that. --Imad On Tue, Jul 8, 2008 at 10:16 AM, Alvaro Herrera <[EMAIL PROTECTED]> wrote: > Stephen R. van den Berg wrote: > >> How large is the probability of these numbers ever changing? > > Really s

Re: [HACKERS] Binary data type with other output method

2007-12-25 Thread imad
ouble, if you forget one. > > > > > > > Do you really need a new datatype or just to change the output behaviour > of the inbuilt type? That should be quite easy to do in just a few lines > of code. > > cheers > > andrew > > ---

Re: [HACKERS] Design: Escort info from WHERE clause to executor?

2007-07-24 Thread imad
nt to take this weight value all the way upto the executor. --Imad www.EnterpriseDB.com On 7/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi all, I want to pass additional weight info from the WHERE clause to the executor and I hope someone can help me with this. I accept claus

Re: [HACKERS] write past chunk end in ExprContext / to_char

2007-06-28 Thread imad
a change for a patch ? --Imad www.EnterpriseDB.com On 6/29/07, Tom Lane <[EMAIL PROTECTED]> wrote: Patrick Welche <[EMAIL PROTECTED]> writes: > With today's CVS code (originally noticed with 8.2beta3), on a PC where > INT_MAX=0x7FFF=2147483647 > postgres=# selec

Re: [HACKERS] PL/pgSQL RENAME functionality in TODOs

2007-02-02 Thread imad
] EnterpriseDB http://enterprisedb.com 512.569.9461 (cell) Parameters can be renamed in 8.2. The only thing which does not work is renaming a variable immediately after its declaration which is a useless functionality. So, should we still consider it a ToDo? -- Imad www.EnterpriseDB.com -

Re: [HACKERS] PL/pgSQL RENAME functionality in TODOs

2007-02-01 Thread imad
On 2/1/07, Tom Lane <[EMAIL PROTECTED]> wrote: imad <[EMAIL PROTECTED]> writes: > OK, so renaming does not work in the same block. > You can rename a vairable in a nested block and thats why it works for OLD/NEW. > BTW, what is the purpose behind it? Declaring a vari

Re: [HACKERS] PL/pgSQL RENAME functionality in TODOs

2007-01-30 Thread imad
OK, so renaming does not work in the same block. You can rename a vairable in a nested block and thats why it works for OLD/NEW. BTW, what is the purpose behind it? Declaring a variable in a block and quickly renaming it does not make sense to me. --Imad www.EnterpriseDB.com On 1/31/07, Bruce

[HACKERS] PL/pgSQL RENAME functionality in TODOs

2007-01-30 Thread imad
I was testing the following statement and found it working fine on version 8.2.1. "Fix RENAME to work on variables other than OLD/NEW" I can rename just any variable declared in a PL block apart from OLD/NEW. Is the TODOs list out of sync or I am missing the point her

Re: [HACKERS] Coding style question

2006-11-02 Thread imad
On 11/3/06, Tom Lane <[EMAIL PROTECTED]> wrote: imad <[EMAIL PROTECTED]> writes: > Well, its about the coding style. And I doubt there exists a data type > which may not have > an initializer. A NULL / Zero is an option in all cases and you can do > whatever you w

Re: [HACKERS] Coding style question

2006-11-02 Thread imad
ite them as assignments after the statement acquiring the table lock. Well, its about the coding style. And I doubt there exists a data type which may not have an initializer. A NULL / Zero is an option in all cases and you can do whatever you want to assign it a value immediately after the init

Re: [HACKERS] Coding style question

2006-11-02 Thread imad
Shouldn't we turn on warnings by the compiler on uninitialized variables? This can also be helpful. --Imad www.EnterpriseDB.com On 11/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I've noticed a trend in the PostgreSQL code base - for some reason, we tend to av

Re: [HACKERS] ¿¿¿past chunk end???

2006-11-01 Thread imad
Carefully check all the palloc's you are doing in your code. This warning is shown when you write some extra bytes to the memory and size of your data goes beyond the allocated size. --Imad EnterpriseDB (www.enterprisedb.com) On 11/1/06, luis garcia <[EMAIL PROTECTED]> wrote: Hi W

Re: [HACKERS] MVCC question

2006-10-23 Thread imad
Release 6.5 brings MVCC to PostgreSQL. Check out the following doc for details http://www.postgresql.org/docs/7.1/static/release-6-5.html --Imad EnterpriseDB (http://www.enterprisedb.com) On 10/23/06, Gevik Babakhani <[EMAIL PROTECTED]> wrote: Folks, How long are we supporting MVCC?

[HACKERS] Executing Anonymous Blocks

2005-03-27 Thread imad
hi, I want to know is there any way to execute an anonymous PL/pgSQL block in PostgreSQL. Thanx -- Regards Imad ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column&#

[HACKERS] Information Required

2005-01-09 Thread imad
Can anyone please tell me where in the source code, I can find the compelte query. -- Regards Imad ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org