1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Back-patch bgworker API changes to 9.3.

Commit 7f7485a0cd made these changes
in master; per discussion, backport the API changes (but not the
functional changes), so that people don't get used to the 9.3 API
only to see it get broken in the next release.  There are already
some people coding to the original 9.3 API, and this will cause
minor breakage, but there will be even more if we wait until next
year to roll out these changes.
This commit is contained in:
Robert Haas
2013-07-22 15:41:44 -04:00
parent 295f9bbf1d
commit 026bc46da3
4 changed files with 18 additions and 21 deletions

View File

@ -40,12 +40,12 @@
typedef void (*bgworker_main_type)(void *main_arg);
typedef struct BackgroundWorker
{
char *bgw_name;
char bgw_name[BGW_MAXLEN];
int bgw_flags;
BgWorkerStartTime bgw_start_time;
int bgw_restart_time; /* in seconds, or BGW_NEVER_RESTART */
bgworker_main_type bgw_main;
void *bgw_main_arg;
bgworker_main_type bgw_main;
Datum bgw_main_arg;
} BackgroundWorker;
</programlisting>
</para>