Обсуждение: src / test / regress / sql / triggers.sql first 10 lines.

Поиск
Список
Период
Сортировка

src / test / regress / sql / triggers.sql first 10 lines.

От
alias
Дата:
1 --
2 -- TRIGGERS
3 --
5 -- directory paths and dlsuffix are passed to us in environment variables
6 \getenv libdir PG_LIBDIR
7 \getenv dlsuffix PG_DLSUFFIX
9 \set autoinclib :libdir '/autoinc' :dlsuffix
10 \set refintlib :libdir '/refint' :dlsuffix


I want to play around with  src / test / regress / sql / triggers.sql
Now I  am not sure what the first 10 lines mean. 
Should I just copy these 10 lines in the terminal and not worry about it? 
Or  to get the same result as triggers.out, 
I need to properly understand these 10 lines first. 
 




Re: src / test / regress / sql / triggers.sql first 10 lines.

От
Tom Lane
Дата:
alias <postgres.rocks@gmail.com> writes:
> Now I  am not sure what the first 10 lines mean.

Those are computing the file pathnames of regress.so and a couple of
other .so files that contain the C functions referred to in the
CREATE commands just below here.  We can't just hard-wire those file
names into the script; they have to be computed at run-time because
everybody's paths will be different.

            regards, tom lane