Sponsored Content
Top Forums Programming Specification language suitable for procedural programs Post 302288189 by tsurko on Monday 16th of February 2009 04:41:36 PM
Old 02-16-2009
Thank you for your reply. For my needs I think that the flowcharts and eventually doxygen will be sufficient.
I've read about the flowcharts in wikipedia. Looks like they are similar to SDL.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

HD specification

What command do I use to determine how many/what kind/how big the hard drives on a box are? (2 Replies)
Discussion started by: abolshoun
2 Replies

2. Solaris

hardware specification ( very Urgent please )

I wana know my box hardware specification ( Like RAM , processor speed .... Etc ) and used version of Solaris i mean (SPARC, 32-bit) or (x86, 32-bit) or(SPARC, 64-bit) or what ?? very Urgent please (5 Replies)
Discussion started by: KSA
5 Replies

3. Shell Programming and Scripting

Range specification in for loop

Hello Friends, I want to use range in for loop. For that i used (..) operator but it is not working. Ex: for i in 1..24 do echo $i done Instead of printing 1 to 24 nos, it gives o/p as: 1..24 Please help me Thanks in advance. (2 Replies)
Discussion started by: Niyati
2 Replies

4. UNIX for Dummies Questions & Answers

RSC card specification

Hi I have a SUN box that i am supporting Model 480r . The RS card that is attached to it is giving some problems . It is pinging but i am unable to telnet into it therefore having no remote TC console access ( the system is currently up ) Is there a way by which i can remotely check the... (1 Reply)
Discussion started by: Sam4u
1 Replies

5. Solaris

Getting server specification

Hi all, Can anyone help me to get the server specifications like the following? eg. SUN Fire XXX X UltraSPARC X MHZ X MB Memory X GB od hard disk X On board PCI IO card X PCI HNI card Thanks. (4 Replies)
Discussion started by: beginningDBA
4 Replies

6. UNIX for Dummies Questions & Answers

Are programs like sys_open( ) ,sys_read( ) et al examples of system level programs ?

Are the programs written on schedulers ,thread library , process management, memory management, et al called systems programs ? How are they different from the programs that implement functions like open() , printf() , scanf() , read() .. they have a prefix sys_open, sys_close, sys_read etc , right... (1 Reply)
Discussion started by: vishwamitra
1 Replies

7. Shell Programming and Scripting

Help with column specification

Hi I am working on a program that reads a file with multiple columns and was curious how to specify the columns to be manipulated in the command line. For example the file may look something like: Column1 Column2 Column3 Column4 Column5 Column6 AC 82542 3525 ... (1 Reply)
Discussion started by: drossy
1 Replies

8. UNIX for Dummies Questions & Answers

Procedural nature of shell scripts

#!/bin/bash #this is script1 sleep 30 And #!/bin/bash #this is script 2 /path/to/script1.sh echo im done Running script 2 will give a 30 second pause and then echo Im done to the terminal. What behavior exactly, is responsible for waiting for script one to complete before the... (2 Replies)
Discussion started by: glev2005
2 Replies

9. Android

Is FAT32 more suitable?

May I assume that there is no point to format your SD Card (assume you have the 32 GB size) to NTFS if the device can support SD Card of up to 32 GB and FAT32 maximum limit is also exactly 32 GB? "Crest Accountants Suite E316, Level 3 Oracle East Building 3 Oracle Boulevard Broadbeach QLD 4218,... (1 Reply)
Discussion started by: PheekaJabal
1 Replies

10. UNIX for Dummies Questions & Answers

Difference between inbuilt suid programs and user defined root suid programs under bash shell?

Hey guys, Suppose i run passwd via bash shell. It is a suid program, which temporarily runs as root(owner) and modifies the user entries. However, when i write a C file and give 4755 permission and root ownership to the 'a.out' file , it doesn't run as root in bash shell. I verified this by... (2 Replies)
Discussion started by: syncmaster
2 Replies
CREATE 
LANGUAGE(7) SQL Commands CREATE LANGUAGE(7) NAME
CREATE LANGUAGE - define a new procedural language SYNOPSIS
CREATE [ TRUSTED ] [ PROCEDURAL ] LANGUAGE langname HANDLER call_handler [ VALIDATOR valfunction ] DESCRIPTION
Using CREATE LANGUAGE, a PostgreSQL user can register a new procedural language with a PostgreSQL database. Subsequently, functions and trigger procedures can be defined in this new language. The user must have the PostgreSQL superuser privilege to register a new language. CREATE LANGUAGE effectively associates the language name with a call handler that is responsible for executing functions written in the language. Refer to the Programmer's Guide for more information about language call handlers. Note that procedural languages are local to individual databases. To make a language available in all databases by default, it should be installed into the template1 database. PARAMETERS
TRUSTED TRUSTED specifies that the call handler for the language is safe, that is, it does not offer an unprivileged user any functionality to bypass access restrictions. If this keyword is omitted when registering the language, only users with the PostgreSQL superuser privilege can use this language to create new functions. PROCEDURAL This is a noise word. langname The name of the new procedural language. The language name is case insensitive. A procedural language cannot override one of the built-in languages of PostgreSQL. For backward compatibility, the name may be enclosed by single quotes. HANDLER call_handler call_handler is the name of a previously registered function that will be called to execute the procedural language functions. The call handler for a procedural language must be written in a compiled language such as C with version 1 call convention and regis- tered with PostgreSQL as a function taking no arguments and returning the language_handler type, a placeholder type that is simply used to identify the function as a call handler. VALIDATOR valfunction valfunction is the name of a previously registered function that will be called when a new function in the language is created, to validate the new function. If no validator function is specified, then a new function will not be checked when it is created. The validator function must take one argument of type oid, which will be the OID of the to-be-created function, and will typically return void. A validator function would typically inspect the function body for syntactical correctness, but it can also look at other properties of the function, for example if the language cannot handle certain argument types. To signal an error, the validator function should use the elog() function. The return value of the function is ignored. DIAGNOSTICS
CREATE LANGUAGE This message is returned if the language is successfully created. ERROR: PL handler function funcname() doesn't exist This error is returned if the function funcname() is not found. NOTES
This command normally should not be executed directly by users. For the procedural languages supplied in the PostgreSQL distribution, the createlang(1) script should be used, which will also install the correct call handler. (createlang will call CREATE LANGUAGE internally.) In PostgreSQL versions before 7.3, it was necessary to declare handler functions as returning the placeholder type opaque, rather than lan- guage_handler. To support loading of old dump files, CREATE LANGUAGE will accept a function declared as returning opaque, but it will issue a NOTICE and change the function's declared return type to language_handler. Use the CREATE FUNCTION [create_function(7)] command to create a new function. Use DROP LANGUAGE [drop_language(7)], or better yet the droplang(1) script, to drop procedural languages. The system catalog pg_language records information about the currently installed procedural languages. Table "pg_language" Attribute | Type | Modifier ---------------+-----------+---------- lanname | name | lanispl | boolean | lanpltrusted | boolean | lanplcallfoid | oid | lanvalidator | oid | lanacl | aclitem[] | lanname | lanispl | lanpltrusted | lanplcallfoid | lanvalidator | lanacl -------------+---------+--------------+---------------+--------------+-------- internal | f | f | 0 | 2246 | c | f | f | 0 | 2247 | sql | f | t | 0 | 2248 | {=U} At present, with the exception of the permissions, the definition of a procedural language cannot be changed once it has been created. To be able to use a procedural language, a user must be granted the USAGE privilege. The createlang program automatically grants permis- sions to everyone if the language is known to be trusted. EXAMPLES
The following two commands executed in sequence will register a new procedural language and the associated call handler. CREATE FUNCTION plsample_call_handler () RETURNS language_handler AS '$libdir/plsample' LANGUAGE C; CREATE LANGUAGE plsample HANDLER plsample_call_handler; COMPATIBILITY
CREATE LANGUAGE is a PostgreSQL extension. HISTORY
The CREATE LANGUAGE command first appeared in PostgreSQL 6.3. SEE ALSO
createlang(1), CREATE FUNCTION [create_function(7)], droplang(1), DROP LANGUAGE [drop_language(l)], GRANT [grant(l)], REVOKE [revoke(l)], PostgreSQL Programmer's Guide SQL - Language Statements 2002-11-22 CREATE LANGUAGE(7)
All times are GMT -4. The time now is 06:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy