Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

alter_schema(7) [suse man page]

ALTER 
SCHEMA(7) SQL Commands ALTER SCHEMA(7) NAME
ALTER SCHEMA - change the definition of a schema SYNOPSIS
ALTER SCHEMA name RENAME TO newname ALTER SCHEMA name OWNER TO newowner DESCRIPTION
ALTER SCHEMA changes the definition of a schema. You must own the schema to use ALTER SCHEMA. To rename a schema you must also have the CREATE privilege for the database. To alter the owner, you must also be a direct or indirect member of the new owning role, and you must have the CREATE privilege for the database. (Note that superusers have all these privileges automatically.) PARAMETERS
name The name of an existing schema. newname The new name of the schema. The new name cannot begin with pg_, as such names are reserved for system schemas. newowner The new owner of the schema. COMPATIBILITY
There is no ALTER SCHEMA statement in the SQL standard. SEE ALSO
CREATE SCHEMA [create_schema(7)], DROP SCHEMA [drop_schema(7)] SQL - Language Statements 2010-05-14 ALTER SCHEMA(7)

Check Out this Related Man Page

DROP 
SCHEMA(7) PostgreSQL 9.2.7 Documentation DROP SCHEMA(7) NAME
DROP_SCHEMA - remove a schema SYNOPSIS
DROP SCHEMA [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ] DESCRIPTION
DROP SCHEMA removes schemas from the database. A schema can only be dropped by its owner or a superuser. Note that the owner can drop the schema (and thereby all contained objects) even if he does not own some of the objects within the schema. PARAMETERS
IF EXISTS Do not throw an error if the schema does not exist. A notice is issued in this case. name The name of a schema. CASCADE Automatically drop objects (tables, functions, etc.) that are contained in the schema. RESTRICT Refuse to drop the schema if it contains any objects. This is the default. EXAMPLES
To remove schema mystuff from the database, along with everything it contains: DROP SCHEMA mystuff CASCADE; COMPATIBILITY
DROP SCHEMA is fully conforming with the SQL standard, except that the standard only allows one schema to be dropped per command, and apart from the IF EXISTS option, which is a PostgreSQL extension. SEE ALSO
ALTER SCHEMA (ALTER_SCHEMA(7)), CREATE SCHEMA (CREATE_SCHEMA(7)) PostgreSQL 9.2.7 2014-02-17 DROP SCHEMA(7)
Man Page

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SED Exclude Matches Between Pattern1 And Pattern2 Containing Pattern3 Print The Rest

Hi, From the sample file below Conditions 1) Pattern Range must start with "ALTER TABLE" 2) Pattern Range ends when it finds ";" 3) Between this range i want to select all the patterns that contain pattern " MOVE " Note : I would like to exclude the above pattern matches and print... (1 Reply)
Discussion started by: rajan_san
1 Replies

2. Shell Programming and Scripting

sed/awk help to match list of patterns and remove from org file

Hi, From the pattern mentioned below remove lines based on pattern range. Conditions 1 Look For all lines starting with ALTER TABLE and Ending with ; and contains the word MOVE.I wanto to remove these lines from the file sample below. Note : The above pattern list could be found in... (1 Reply)
Discussion started by: rajan_san
1 Replies

3. Shell Programming and Scripting

Sed Help.To Search Between Pattern1 And Pattern2 Containing Certain Text

Hi, Here is a sample of my Test File $ cat TestFile1 Prompt Table DQZ_ALTER_SCHEMA_ID; ALTER TABLE DQZ.DQZ_ALTER_SCHEMA_ID MONITORING; ALTER TABLE DQZ.DQZ_ALTER_SCHEMA_ID STORAGE ( NEXT 3464K ); Prompt Table DQZ_ALTER_SCHEMA_ID; ALTER TABLE DQZ.DQZ_ALTER_SCHEMA_ID MOVE LOB... (16 Replies)
Discussion started by: rajan_san
16 Replies