[HACKERS] name.c

2013-12-01 Thread mohsen soodkhah mohammadi
in name.c file in source code of postgresql
I find some fuctions that I don't know where did use them?
the functions are:
int namecpy(Name n1, Name n2){..}
int namecat(Name n1, Name n2){..}
int namecmp(Name n1, Name n2){..}
int namestrcpy(Name name, const char *str){..}
int namestrcat(Name name, const char *str){..}
also before some of these functions became the #ifdef NOT_USED
when NOT_USED is set?and why it set?
thanks.


[HACKERS] palloc0

2013-11-30 Thread mohsen soodkhah mohammadi
if I don't dalloc parameters that allocated with palloc0 then will free the
allocated memory at the end of transaction?


[HACKERS] Name type in postgres

2013-11-27 Thread mohsen soodkhah mohammadi
hello.
I want do understand that did can we have name without null-terminator?
in src/backend/util/adt/name.c in nameout() function is:
Names = PG_GETARG_NAME(0);
PG_RETURN_CSTRING(pstrdup(NameStr(*s)));
what do the pstrdup() function?
do this function create string from name with null-terminate?


[HACKERS] COPY TO

2013-11-22 Thread mohsen soodkhah mohammadi
hello.
in copy.c is one function that its name is CopyOneRowTO.
in this function have one foreach loop. in this loop first if have this
condition: !cstate-binary
what means this condition and when true this condition?
thank you.


[HACKERS] using testlo example of postgres source code

2013-10-14 Thread mohsen soodkhah mohammadi
I work in linux
I want use testlo.c in client side that testlo.c is in src/test/example/
address of postgresql source code.
I run make in /src/test/example/
then copy executable file(testlo) in lib directory of installation
directory of postgresql.
now I don't know how do I can use this execute library?
how did I can an large object with this library(testlo)?


[HACKERS] when construct new tuple for update?

2013-09-18 Thread mohsen soodkhah mohammadi
hi
I want that find where did a new tuple data construct in postgresql code
when query is update.
I find that ExecModiryTable is an upper function for do it. but I want to
find exact place that create the data of one row of table.
can you help me?


[HACKERS] create index does change pages?

2013-07-20 Thread mohsen soodkhah mohammadi
hello.
dose one create index on the large table changes the place of some tuples
in some pages?


[HACKERS] LogSwitch

2013-07-08 Thread mohsen soodkhah mohammadi
what is log switch and when it occur ?


[HACKERS] postgresMain() function

2013-07-07 Thread mohsen soodkhah mohammadi
hello .
In Postgres.c we have a switch for firstchar .  one of case of them is :
case 'Q' that is for simple queries.
I want to know the other cases were for what operations .
and:
is the case with  'Q' parameter for DDL and DML commands?


[HACKERS] WAL and XLOG

2013-07-07 Thread mohsen soodkhah mohammadi
hello.
I am reading about WAL and XLOG records.
I am beginner in them.
can you direct me and give me some document?
I want to know what did save in XLOG records exactly and who can create
XLOG records?


[HACKERS] WAL

2013-07-07 Thread mohsen soodkhah mohammadi
hello.
I am reading about WAL and XLOG records.
I am beginner in them.
can you direct me and give me some document?