Обсуждение: there is no an example in reloptions.c for string?

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

there is no an example in reloptions.c for string?

От
"jacktby@gmail.com"
Дата:
jacktby@gmail.com



--------------



here is the codes for pg16.



static relopt_string stringRelOpts[] =



{



    /* list terminator */



    {{NULL}}



};





And I add my string type arguments here, it can't work well.



When I debug, it comes to func allocateReloptStruct, at the



code line "size += optstr->fill_cb(val, NULL);", it gives me segment



fault. what else do I need to add? can you give me an example?





Re: there is no an example in reloptions.c for string?

От
"David G. Johnston"
Дата:
On Sun, Oct 30, 2022 at 8:24 PM jacktby@gmail.com <jacktby@gmail.com> wrote:
t. what else do I need to add?

The stuff it mentions in the code comment in that file.  You might consider actually showing what you did add.

can you give me an example?


Ah, the beauty of using version control, history as examples.


David J.