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
a07c5a12
Commit
a07c5a12
authored
Sep 15, 2003
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove warnings for operations that have no effect when executed repeatedly.
parent
2f9d32cd
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
6 additions
and
36 deletions
+6
-36
src/backend/commands/async.c
src/backend/commands/async.c
+1
-3
src/backend/commands/tablecmds.c
src/backend/commands/tablecmds.c
+1
-12
src/backend/commands/typecmds.c
src/backend/commands/typecmds.c
+1
-5
src/backend/commands/user.c
src/backend/commands/user.c
+1
-6
src/test/regress/expected/alter_table.out
src/test/regress/expected/alter_table.out
+1
-2
src/test/regress/expected/domain.out
src/test/regress/expected/domain.out
+0
-4
src/test/regress/expected/privileges.out
src/test/regress/expected/privileges.out
+0
-1
src/test/regress/sql/alter_table.sql
src/test/regress/sql/alter_table.sql
+1
-1
src/test/regress/sql/domain.sql
src/test/regress/sql/domain.sql
+0
-2
No files found.
src/backend/commands/async.c
View file @
a07c5a12
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.9
8 2003/08/04 02:39:58 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.9
9 2003/09/15 00:26:31 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -221,8 +221,6 @@ Async_Listen(char *relname, int pid)
if
(
alreadyListener
)
{
heap_close
(
lRel
,
AccessExclusiveLock
);
ereport
(
WARNING
,
(
errmsg
(
"already listening on
\"
%s
\"
"
,
relname
)));
return
;
}
...
...
src/backend/commands/tablecmds.c
View file @
a07c5a12
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.8
0 2003/08/30 14:59:34 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.8
1 2003/09/15 00:26:31 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -2567,14 +2567,6 @@ AlterTableAlterOids(Oid myrelid, bool recurse, bool setOid)
*/
if
(
tuple_class
->
relhasoids
==
setOid
)
{
if
(
setOid
)
ereport
(
NOTICE
,
(
errmsg
(
"table
\"
%s
\"
is already WITH OIDS"
,
RelationGetRelationName
(
rel
))));
else
ereport
(
NOTICE
,
(
errmsg
(
"table
\"
%s
\"
is already WITHOUT OIDS"
,
RelationGetRelationName
(
rel
))));
heap_close
(
class_rel
,
RowExclusiveLock
);
heap_close
(
rel
,
NoLock
);
/* close rel, but keep lock! */
return
;
...
...
@@ -4001,9 +3993,6 @@ AlterTableClusterOn(Oid relOid, const char *indexName)
*/
if
(
indexForm
->
indisclustered
)
{
ereport
(
NOTICE
,
(
errmsg
(
"table
\"
%s
\"
is already being clustered on index
\"
%s
\"
"
,
NameStr
(
rel
->
rd_rel
->
relname
),
indexName
)));
ReleaseSysCache
(
indexTuple
);
heap_close
(
rel
,
NoLock
);
return
;
...
...
src/backend/commands/typecmds.c
View file @
a07c5a12
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.4
4 2003/09/09 23:22:19
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/typecmds.c,v 1.4
5 2003/09/15 00:26:31
petere Exp $
*
* DESCRIPTION
* The "DefineFoo" routines take the parse tree and pick out the
...
...
@@ -1246,10 +1246,6 @@ AlterDomainNotNull(List *names, bool notNull)
/* Is the domain already set to the desired constraint? */
if
(
typTup
->
typnotnull
==
notNull
)
{
ereport
(
NOTICE
,
(
errmsg
(
"
\"
%s
\"
is already set to %s"
,
TypeNameToString
(
typename
),
notNull
?
"NOT NULL"
:
"NULL"
)));
heap_close
(
typrel
,
RowExclusiveLock
);
return
;
}
...
...
src/backend/commands/user.c
View file @
a07c5a12
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.12
4 2003/08/04 02:39:58 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.12
5 2003/09/15 00:26:31 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1498,11 +1498,6 @@ AlterGroup(AlterGroupStmt *stmt, const char *tag)
if
(
!
intMember
(
sysid
,
newlist
))
newlist
=
lappendi
(
newlist
,
sysid
);
else
ereport
(
WARNING
,
(
errcode
(
ERRCODE_DUPLICATE_OBJECT
),
errmsg
(
"user
\"
%s
\"
is already in group
\"
%s
\"
"
,
strVal
(
lfirst
(
item
)),
stmt
->
name
)));
}
/* Do the update */
...
...
src/test/regress/expected/alter_table.out
View file @
a07c5a12
...
...
@@ -1209,8 +1209,7 @@ select oid > 0, * from altinhoid;
(1 row)
alter table altwithoid set without oids;
alter table altinhoid set without oids; -- fails
NOTICE: table "altinhoid" is already WITHOUT OIDS
alter table altinhoid set without oids;
select oid > 0, * from altwithoid; -- fails
ERROR: attribute "oid" not found
select oid > 0, * from altinhoid; -- fails
...
...
src/test/regress/expected/domain.out
View file @
a07c5a12
...
...
@@ -205,13 +205,9 @@ alter domain dnotnulltest set not null; -- fails
ERROR: relation "domnotnull" attribute "col2" contains NULL values
update domnotnull set col2 = 6;
alter domain dnotnulltest set not null;
alter domain dnotnulltest set not null; -- fails
NOTICE: "dnotnulltest" is already set to NOT NULL
update domnotnull set col1 = null; -- fails
ERROR: domain dnotnulltest does not allow NULL values
alter domain dnotnulltest drop not null;
alter domain dnotnulltest drop not null; -- fails
NOTICE: "dnotnulltest" is already set to NULL
update domnotnull set col1 = null;
drop domain dnotnulltest cascade;
NOTICE: drop cascades to table domnotnull column col2
...
...
src/test/regress/expected/privileges.out
View file @
a07c5a12
...
...
@@ -11,7 +11,6 @@ CREATE GROUP regressgroup1;
CREATE GROUP regressgroup2 WITH USER regressuser1, regressuser2;
ALTER GROUP regressgroup1 ADD USER regressuser4;
ALTER GROUP regressgroup2 ADD USER regressuser2; -- duplicate
WARNING: user "regressuser2" is already in group "regressgroup2"
ALTER GROUP regressgroup2 DROP USER regressuser2;
ALTER GROUP regressgroup2 ADD USER regressuser4;
-- test owner privileges
...
...
src/test/regress/sql/alter_table.sql
View file @
a07c5a12
...
...
@@ -870,7 +870,7 @@ select oid > 0, * from altwithoid;
select
oid
>
0
,
*
from
altinhoid
;
alter
table
altwithoid
set
without
oids
;
alter
table
altinhoid
set
without
oids
;
-- fails
alter
table
altinhoid
set
without
oids
;
select
oid
>
0
,
*
from
altwithoid
;
-- fails
select
oid
>
0
,
*
from
altinhoid
;
-- fails
...
...
src/test/regress/sql/domain.sql
View file @
a07c5a12
...
...
@@ -174,12 +174,10 @@ alter domain dnotnulltest set not null; -- fails
update
domnotnull
set
col2
=
6
;
alter
domain
dnotnulltest
set
not
null
;
alter
domain
dnotnulltest
set
not
null
;
-- fails
update
domnotnull
set
col1
=
null
;
-- fails
alter
domain
dnotnulltest
drop
not
null
;
alter
domain
dnotnulltest
drop
not
null
;
-- fails
update
domnotnull
set
col1
=
null
;
...
...
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