This file is indexed.

/var/lib/gnumed/server/sql/gmHousekeeping.sql is in gnumed-server 16.17-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
-- Project: GNUmed - database housekeeping TODO tables
-- ===================================================================
-- $Source: /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/server/sql/gmHousekeeping.sql,v $
-- $Revision: 1.8 $
-- license: GPL v2 or later
-- author: Karsten Hilbert

-- This script provides tables used in collecting pending
-- housekeeping tasks. Demons, integrity checkers and auto-running
-- workers (say, import scripts) can use this to deliver messages
-- if they cannot count on a human user interacting with them.

-- ===================================================================
-- force terminate + exit(3) on errors if non-interactive
\set ON_ERROR_STOP 1

-- ===================================================================
create table housekeeping_todo (
	pk serial primary key,
	reported_when timestamp with time zone not null default CURRENT_TIMESTAMP,
	reported_by text not null default CURRENT_USER,
	reported_to text
		not null
		default 'admin'
		check (reported_to in ('user', 'admin')),
	problem text not null,
	solution text default null,
	context text default null,
	category text not null,
	cookie text default null
);

comment on table housekeeping_todo is
	'this table stores items that originate in headless processes
	 running in the background but need to be brought to the
	 attention of someone, say, errors that an integrity checker
	 may find';
comment on column housekeeping_todo.reported_by is
	'who or what reported this condition, may be a user or software';
comment on column housekeeping_todo.reported_to is
	'who is this condition reported to, user or admin,
	 used for filtering';
comment on column housekeeping_todo.problem is
	'a description of the reported condition';
comment on column housekeeping_todo.solution is
	'a proposed solution to the problem';
comment on column housekeeping_todo.context is
	'specific context for this condition that would
	 make the problem field unnecessary complex and bulky';
comment on column housekeeping_todo.category is
	'a category for the condition, this is used
	 for filtering, too';
comment on column housekeeping_todo.cookie is
	'stores arbitrary information related to the condition,
	 mostly used for semantic duplicates detection, eg.
	 do not report on a single problem more than once in
	 subsequent runs of, say, an import script';

-- =============================================
GRANT select, insert ON
	housekeeping_todo
	, housekeeping_todo_pk_seq
TO GROUP "gm-public";

-- should be "admin" ...
GRANT select, insert, update, delete on
	housekeeping_todo
	, housekeeping_todo_pk_seq
TO GROUP "gm-doctors";

-- =============================================
-- do simple schema revision tracking
delete from gm_schema_revision where filename = '$RCSfile: gmHousekeeping.sql,v $';
INSERT INTO gm_schema_revision (filename, version) VALUES('$RCSfile: gmHousekeeping.sql,v $', '$Revision: 1.8 $');

-- =============================================
-- $Log: gmHousekeeping.sql,v $
-- Revision 1.8  2005-09-19 16:38:51  ncq
-- - adjust to removed is_core from gm_schema_revision
--
-- Revision 1.7  2005/07/14 21:31:42  ncq
-- - partially use improved schema revision tracking
--
-- Revision 1.6  2004/07/17 20:57:53  ncq
-- - don't use user/_user workaround anymore as we dropped supporting
--   it (but we did NOT drop supporting readonly connections on > 7.3)
--
-- Revision 1.5  2004/04/27 15:19:45  ncq
-- - add cookie
--
-- Revision 1.4  2004/04/26 09:40:11  ncq
-- - add context/category to todo table
--
-- Revision 1.3  2004/04/19 12:47:49  ncq
-- - translate request_status
-- - add housekeeping_todo.reported_to
--
-- Revision 1.2  2004/03/18 09:50:19  ncq
-- - fixed GRANTs
--
-- Revision 1.1  2004/03/16 15:55:42  ncq
-- - use for housekeeping, etc.
--