Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
9f1f2bfb
Commit
9f1f2bfb
authored
Jan 07, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix various places where global s/NOTICE/WARNING/ was applied with too
much enthusiasm.
parent
3e40ff58
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
19 deletions
+17
-19
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+2
-2
src/backend/storage/ipc/shmqueue.c
src/backend/storage/ipc/shmqueue.c
+4
-6
src/backend/utils/error/elog.c
src/backend/utils/error/elog.c
+3
-3
src/bin/psql/common.c
src/bin/psql/common.c
+2
-2
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-exec.c
+4
-4
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-misc.c
+2
-2
No files found.
src/backend/commands/vacuum.c
View file @
9f1f2bfb
...
...
@@ -13,7 +13,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.24
5 2002/12/15 16:17:44
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.24
6 2003/01/07 22:23:17
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -2294,7 +2294,7 @@ repair_frag(VRelStats *vacrelstats, Relation onerel,
* status bits. This is not really necessary, but will save time for
* future transactions examining these tuples.
*
* XXX
WARNING
that this code fails to clear HEAP_MOVED_OFF tuples from
* XXX
NOTICE
that this code fails to clear HEAP_MOVED_OFF tuples from
* pages that were move source pages but not move dest pages. One
* also wonders whether it wouldn't be better to skip this step and
* let the tuple status updates happen someplace that's not holding an
...
...
src/backend/storage/ipc/shmqueue.c
View file @
9f1f2bfb
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmqueue.c,v 1.2
2 2002/08/27 03:56:35 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/shmqueue.c,v 1.2
3 2003/01/07 22:23:17 tgl
Exp $
*
* NOTES
*
...
...
@@ -28,10 +28,8 @@
#include "storage/shmem.h"
/*#define SHMQUEUE_DEBUG*/
#ifdef SHMQUEUE_DEBUG
#define SHMQUEUE_DEBUG_ELOG WARNING
#ifdef SHMQUEUE_DEBUG
static
void
dumpQ
(
SHM_QUEUE
*
q
,
char
*
s
);
#endif
...
...
@@ -231,7 +229,7 @@ dumpQ(SHM_QUEUE *q, char *s)
}
snprintf
(
elem
,
sizeof
(
elem
),
"--->%lx"
,
MAKE_OFFSET
(
q
));
strcat
(
buf
,
elem
);
elog
(
SHMQUEUE_DEBUG_ELOG
,
"%s: %s"
,
s
,
buf
);
elog
(
DEBUG1
,
"%s: %s"
,
s
,
buf
);
snprintf
(
buf
,
sizeof
(
buf
),
"q nexts: %lx"
,
MAKE_OFFSET
(
q
));
count
=
0
;
...
...
@@ -251,7 +249,7 @@ dumpQ(SHM_QUEUE *q, char *s)
}
snprintf
(
elem
,
sizeof
(
elem
),
"--->%lx"
,
MAKE_OFFSET
(
q
));
strcat
(
buf
,
elem
);
elog
(
SHMQUEUE_DEBUG_ELOG
,
"%s: %s"
,
s
,
buf
);
elog
(
DEBUG1
,
"%s: %s"
,
s
,
buf
);
}
#endif
/* SHMQUEUE_DEBUG */
src/backend/utils/error/elog.c
View file @
9f1f2bfb
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.10
5 2002/11/14 23:53:27 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.10
6 2003/01/07 22:23:17 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -747,8 +747,8 @@ send_message_to_frontend(int type, const char *msg)
AssertArg
(
type
<=
ERROR
);
pq_beginmessage
(
&
buf
);
pq_sendbyte
(
&
buf
,
type
!=
ERROR
?
'N'
:
'E'
);
/* N is INFO, NOTICE, or
* WARNING */
/* 'N' (Notice) is for nonfatal conditions, 'E' is for errors */
pq_sendbyte
(
&
buf
,
type
<
ERROR
?
'N'
:
'E'
);
pq_sendstring
(
&
buf
,
msg
);
pq_endmessage
(
&
buf
);
...
...
src/bin/psql/common.c
View file @
9f1f2bfb
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.5
2 2002/11/08 19:12:21 momjian
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.5
3 2003/01/07 22:23:17 tgl
Exp $
*/
#include "postgres_fe.h"
#include "common.h"
...
...
@@ -153,7 +153,7 @@ psql_error(const char *fmt,...)
/*
* for backend
INFO, WARNING, ERROR
* for backend
Notice mesages (INFO, WARNING, etc)
*/
void
NoticeProcessor
(
void
*
arg
,
const
char
*
message
)
...
...
src/interfaces/libpq/fe-exec.c
View file @
9f1f2bfb
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.12
3 2002/11/10 00:14:22 momjian
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.12
4 2003/01/07 22:23:17 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -813,7 +813,7 @@ PQsendQuery(PGconn *conn, const char *query)
* handleSendFailure: try to clean up after failure to send command.
*
* Primarily, what we want to accomplish here is to process an async
*
WARNING
message that the backend might have sent just before it died.
*
NOTICE
message that the backend might have sent just before it died.
*
* NOTE: this routine should only be called in PGASYNC_IDLE state.
*/
...
...
@@ -831,7 +831,7 @@ handleSendFailure(PGconn *conn)
/*
* Parse any available input messages. Since we are in PGASYNC_IDLE
* state, only
WARNING
and NOTIFY messages will be eaten.
* state, only
NOTICE
and NOTIFY messages will be eaten.
*/
parseInput
(
conn
);
}
...
...
@@ -905,7 +905,7 @@ parseInput(PGconn *conn)
return
;
/*
* NOTIFY and
WARNING
messages can happen in any state besides
* NOTIFY and
NOTICE
messages can happen in any state besides
* COPY OUT; always process them right away.
*
* Most other messages should only be processed while in BUSY state.
...
...
src/interfaces/libpq/fe-misc.c
View file @
9f1f2bfb
...
...
@@ -25,7 +25,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.8
5 2002/10/24 23:35:55
tgl Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.8
6 2003/01/07 22:23:17
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -690,7 +690,7 @@ pqSendSome(PGconn *conn)
/*
* We used to close the socket here, but that's a bad
* idea since there might be unread data waiting
* (typically, a
WARNING
message from the backend
* (typically, a
NOTICE
message from the backend
* telling us it's committing hara-kiri...). Leave
* the socket open until pqReadData finds no more data
* can be read.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment