pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jacktby@gmail.com <jacktby@gmail.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: there is no an example in reloptions.c for string?
Date: Mon, 31 Oct 2022 11:24:37 +0800
Message-ID: <2022103111233195388115@gmail.com> (raw)

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?






view thread (2+ messages)  latest in thread

Message-ID: <2022103111233195388115@gmail.com>
Permalink:  ../2022103111233195388115@gmail.com/
Also on:    postgresql.org/message-id/2022103111233195388115@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: jacktby@gmail.com
  Subject: Re: there is no an example in reloptions.c for string?
  In-Reply-To: <2022103111233195388115@gmail.com>
  References: <2022103111233195388115@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox