there is no an example in reloptions.c for string? - Mailing list pgsql-general

From jacktby@gmail.com
Subject there is no an example in reloptions.c for string?
Date
Msg-id 2022103111233195388115@gmail.com
Whole thread Raw
Responses Re: there is no an example in reloptions.c for string?
List pgsql-general
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?





pgsql-general by date:

Previous
From: Bryn Llewellyn
Date:
Subject: Re: Unix users and groups... Was: "peer" authentication...
Next
From: "David G. Johnston"
Date:
Subject: Re: there is no an example in reloptions.c for string?