* Avoid core file generation for this PANIC. It helps to avoid * filling up disks during tests and also saves time. */
| 1978 | * filling up disks during tests and also saves time. |
| 1979 | */ |
| 1980 | void |
| 1981 | AvoidCorefileGeneration() |
| 1982 | { |
| 1983 | #if defined(HAVE_GETRLIMIT) && defined(RLIMIT_CORE) |
| 1984 | struct rlimit lim; |
| 1985 | getrlimit(RLIMIT_CORE, &lim); |
| 1986 | lim.rlim_cur = 0; |
| 1987 | if (setrlimit(RLIMIT_CORE, &lim) != 0) |
| 1988 | { |
| 1989 | int save_errno = errno; |
| 1990 | |
| 1991 | elog(NOTICE, |
| 1992 | "setrlimit failed for RLIMIT_CORE soft limit to zero. errno: %d (%m).", |
| 1993 | save_errno); |
| 1994 | } |
| 1995 | #endif |
| 1996 | } |
| 1997 | |
| 1998 | PG_FUNCTION_INFO_V1(gp_get_suboverflowed_backends); |
| 1999 | /* |
no outgoing calls
no test coverage detected